Skip to content

Commit 484de75

Browse files
committed
1.8.0-beta.7: Add missing TLS options
1 parent 6dd0b19 commit 484de75

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nng-c-sys"
3-
version = "1.8.0-beta.6"
3+
version = "1.8.0-beta.7"
44
authors = ["Douman <[email protected]>"]
55
edition = "2018"
66
keywords = ["nng", "nanomsg"]

build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ pub const NNG_OPT_REQ_RESENDTICK: &[u8] = b\"req:resend-tick\0\";
6464
6565
pub const NNG_OPT_SURVEYOR_SURVEYTIME: &[u8] = b\"surveyor:survey-time\0\";
6666
67+
pub const NNG_OPT_TLS_AUTH_MODE: &[u8] = b\"tls-authmode\0\";
68+
pub const NNG_OPT_TLS_CA_FILE: &[u8] = b\"tls-ca-file\0\";
69+
pub const NNG_OPT_TLS_CERT_KEY_FILE: &[u8] = b\"tls-cert-key-file\0\";
70+
pub const NNG_OPT_TLS_CONFIG: &[u8] = b\"tls-config\0\";
71+
pub const NNG_OPT_TLS_SERVER_NAME: &[u8] = b\"tls-server-name\0\";
72+
pub const NNG_OPT_TLS_VERIFIED: &[u8] = b\"tls-verified\0\";
73+
pub const NNG_OPT_TLS_PEER_CN: &[u8] = b\"tls-peer-cn\0\";
74+
pub const NNG_OPT_TLS_PEER_ALT_NAMES: &[u8] = b\"tls-peer-alt-names\0\";
75+
6776
pub const NNG_FLAG_ALLOC: core::ffi::c_int = 1;
6877
pub const NNG_FLAG_NONBLOCK: core::ffi::c_int = 2;
6978
";

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ pub const NNG_OPT_REQ_RESENDTICK: &[u8] = b"req:resend-tick\0";
4141

4242
pub const NNG_OPT_SURVEYOR_SURVEYTIME: &[u8] = b"surveyor:survey-time\0";
4343

44+
pub const NNG_OPT_TLS_AUTH_MODE: &[u8] = b"tls-authmode\0";
45+
pub const NNG_OPT_TLS_CA_FILE: &[u8] = b"tls-ca-file\0";
46+
pub const NNG_OPT_TLS_CERT_KEY_FILE: &[u8] = b"tls-cert-key-file\0";
47+
pub const NNG_OPT_TLS_CONFIG: &[u8] = b"tls-config\0";
48+
pub const NNG_OPT_TLS_SERVER_NAME: &[u8] = b"tls-server-name\0";
49+
pub const NNG_OPT_TLS_VERIFIED: &[u8] = b"tls-verified\0";
50+
pub const NNG_OPT_TLS_PEER_CN: &[u8] = b"tls-peer-cn\0";
51+
pub const NNG_OPT_TLS_PEER_ALT_NAMES: &[u8] = b"tls-peer-alt-names\0";
52+
4453
pub const NNG_FLAG_ALLOC: core::ffi::c_int = 1;
4554
pub const NNG_FLAG_NONBLOCK: core::ffi::c_int = 2;
4655

0 commit comments

Comments
 (0)