Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rust Openssl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public Repositories
Rust Openssl
Commits
b96bbf69
Commit
b96bbf69
authored
10 years ago
by
Marko Lalic
Browse files
Options
Downloads
Patches
Plain Diff
openssl-sys: Add NPN functions and constants
parent
20335c4f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
openssl-sys/Cargo.toml
+1
-0
1 addition, 0 deletions
openssl-sys/Cargo.toml
openssl-sys/src/lib.rs
+29
-0
29 additions, 0 deletions
openssl-sys/src/lib.rs
with
30 additions
and
0 deletions
openssl-sys/Cargo.toml
+
1
−
0
View file @
b96bbf69
...
...
@@ -16,6 +16,7 @@ tlsv1_2 = []
tlsv1_1
=
[]
sslv2
=
[]
aes_xts
=
[]
npn
=
[]
[dependencies]
libc
=
"0.1"
...
...
This diff is collapsed.
Click to expand it.
openssl-sys/src/lib.rs
+
29
−
0
View file @
b96bbf69
...
...
@@ -134,6 +134,13 @@ pub const SSL_VERIFY_PEER: c_int = 1;
pub
const
TLSEXT_NAMETYPE_host_name
:
c_long
=
0
;
#[cfg(feature
=
"npn"
)]
pub
const
OPENSSL_NPN_UNSUPPORTED
:
c_int
=
0
;
#[cfg(feature
=
"npn"
)]
pub
const
OPENSSL_NPN_NEGOTIATED
:
c_int
=
1
;
#[cfg(feature
=
"npn"
)]
pub
const
OPENSSL_NPN_NO_OVERLAP
:
c_int
=
2
;
pub
const
V_ASN1_GENERALIZEDTIME
:
c_int
=
24
;
pub
const
V_ASN1_UTCTIME
:
c_int
=
23
;
...
...
@@ -490,6 +497,28 @@ extern "C" {
pub
fn
SSL_CTX_set_cipher_list
(
ssl
:
*
mut
SSL_CTX
,
s
:
*
const
c_char
)
->
c_int
;
pub
fn
SSL_CTX_ctrl
(
ssl
:
*
mut
SSL_CTX
,
cmd
:
c_int
,
larg
:
c_long
,
parg
:
*
mut
c_void
)
->
c_long
;
#[cfg(feature
=
"npn"
)]
pub
fn
SSL_CTX_set_next_protos_advertised_cb
(
ssl
:
*
mut
SSL_CTX
,
cb
:
extern
"C"
fn
(
ssl
:
*
mut
SSL
,
out
:
*
mut
*
const
c_uchar
,
outlen
:
*
mut
c_uint
,
arg
:
*
mut
c_void
)
->
c_int
,
arg
:
*
mut
c_void
);
#[cfg(feature
=
"npn"
)]
pub
fn
SSL_CTX_set_next_proto_select_cb
(
ssl
:
*
mut
SSL_CTX
,
cb
:
extern
"C"
fn
(
ssl
:
*
mut
SSL
,
out
:
*
mut
*
mut
c_uchar
,
outlen
:
*
mut
c_uchar
,
inbuf
:
*
const
c_uchar
,
inlen
:
c_uint
,
arg
:
*
mut
c_void
)
->
c_int
,
arg
:
*
mut
c_void
);
#[cfg(feature
=
"npn"
)]
pub
fn
SSL_select_next_proto
(
out
:
*
mut
*
mut
c_uchar
,
outlen
:
*
mut
c_uchar
,
inbuf
:
*
const
c_uchar
,
inlen
:
c_uint
,
client
:
*
const
c_uchar
,
client_len
:
c_uint
)
->
c_int
;
#[cfg(feature
=
"npn"
)]
pub
fn
SSL_get0_next_proto_negotiated
(
s
:
*
const
SSL
,
data
:
*
mut
*
const
c_uchar
,
len
:
*
mut
c_uint
);
pub
fn
X509_add_ext
(
x
:
*
mut
X509
,
ext
:
*
mut
X509_EXTENSION
,
loc
:
c_int
)
->
c_int
;
pub
fn
X509_digest
(
x
:
*
mut
X509
,
digest
:
*
const
EVP_MD
,
buf
:
*
mut
c_char
,
len
:
*
mut
c_uint
)
->
c_int
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment