projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various changes in the new TLS extension code, including the following:
[openssl.git]
/
apps
/
s_client.c
diff --git
a/apps/s_client.c
b/apps/s_client.c
index b5c044bfa710b982304f8069a3b0c10ca13db0f8..181cb3f15b19868392917cf5600fe3ef86fcd1c3 100644
(file)
--- a/
apps/s_client.c
+++ b/
apps/s_client.c
@@
-239,11
+239,11
@@
typedef struct tlsextctx_st {
static int MS_CALLBACK ssl_servername_cb(SSL *s, int *ad, void *arg)
{
tlsextctx * p = (tlsextctx *) arg;
static int MS_CALLBACK ssl_servername_cb(SSL *s, int *ad, void *arg)
{
tlsextctx * p = (tlsextctx *) arg;
- const unsigned char * hn= SSL_get_servername(s, TLSEXT_
TYPE_SERVER_host
);
+ const unsigned char * hn= SSL_get_servername(s, TLSEXT_
NAMETYPE_host_name
);
if (SSL_get_servername_type(s) != -1)
p->ack = !SSL_session_reused(s) && hn != NULL;
else
if (SSL_get_servername_type(s) != -1)
p->ack = !SSL_session_reused(s) && hn != NULL;
else
- BIO_printf(bio_err,"
SSL_get_tlsext_hostname does not work
\n");
+ BIO_printf(bio_err,"
Can't use SSL_get_servername
\n");
return SSL_ERROR_NONE;
}
return SSL_ERROR_NONE;
}