diff options
author | flywind <xzsflywind@gmail.com> | 2021-04-03 09:26:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 18:26:30 -0700 |
commit | a807233aebcd3759bc3e21b450ed89e1eb6ddace (patch) | |
tree | 5cd63e236735ccb37254c910866ad14ae91fe318 /lib/wrappers | |
parent | e35946f306c31d02869dfc4f191b76893b792700 (diff) | |
download | Nim-a807233aebcd3759bc3e21b450ed89e1eb6ddace.tar.gz |
fix #17615(runnableExamples silently ignored if placed after some code) (#17619)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Diffstat (limited to 'lib/wrappers')
-rw-r--r-- | lib/wrappers/openssl.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index ec4740bab..9c33386c5 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -565,10 +565,9 @@ proc SSL_ctrl*(ssl: SslPtr, cmd: cint, larg: int, parg: pointer): int{. cdecl, dynlib: DLLSSLName, importc.} proc SSL_set_tlsext_host_name*(ssl: SslPtr, name: cstring): int = - result = SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, name) ## Set the SNI server name extension to be used in a client hello. ## Returns 1 if SNI was set, 0 if current SSL configuration doesn't support SNI. - + result = SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name, name) proc SSL_get_servername*(ssl: SslPtr, typ: cint = TLSEXT_NAMETYPE_host_name): cstring {.cdecl, dynlib: DLLSSLName, importc.} ## Retrieve the server name requested in the client hello. This can be used |