diff options
| author | Steven Fackler <[email protected]> | 2015-06-27 19:37:45 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-06-27 19:37:45 -0700 |
| commit | 9d0acfe6155e1f432a80d0bfa99efbbdf0b07100 (patch) | |
| tree | 46cbc4d2e61351c593edc39adbfa1ab47124c9a6 /openssl-sys/src/openssl_shim.c | |
| parent | Strip other LD_LIBRARY_PATH reference (diff) | |
| download | rust-openssl-9d0acfe6155e1f432a80d0bfa99efbbdf0b07100.tar.xz rust-openssl-9d0acfe6155e1f432a80d0bfa99efbbdf0b07100.zip | |
Fix set_hostname
It was previously failing to null terminate the hostname string (was
anyone actually using this?). Also move the macro expansion to the C
shim.
Diffstat (limited to 'openssl-sys/src/openssl_shim.c')
| -rw-r--r-- | openssl-sys/src/openssl_shim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/openssl_shim.c b/openssl-sys/src/openssl_shim.c index 9b4a9fa2..7b4f9c74 100644 --- a/openssl-sys/src/openssl_shim.c +++ b/openssl-sys/src/openssl_shim.c @@ -78,3 +78,7 @@ long SSL_CTX_add_extra_chain_cert_shim(SSL_CTX *ctx, X509 *x509) { long SSL_CTX_set_read_ahead_shim(SSL_CTX *ctx, long m) { return SSL_CTX_set_read_ahead(ctx, m); } + +long SSL_set_tlsext_host_name_shim(SSL *s, char *name) { + return SSL_set_tlsext_host_name(s, name); +} |