version 1.6, 2014/11/06 14:50:12 |
version 1.7, 2014/11/07 14:16:48 |
|
|
goto end; |
goto end; |
} |
} |
|
|
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) |
#if !defined(OPENSSL_NO_NEXTPROTONEG) |
next_proto.status = -1; |
next_proto.status = -1; |
if (next_proto_neg_in) { |
if (next_proto_neg_in) { |
next_proto.data = next_protos_parse(&next_proto.len, next_proto_neg_in); |
next_proto.data = next_protos_parse(&next_proto.len, next_proto_neg_in); |
|
|
if (socket_type == SOCK_DGRAM) |
if (socket_type == SOCK_DGRAM) |
SSL_CTX_set_read_ahead(ctx, 1); |
SSL_CTX_set_read_ahead(ctx, 1); |
|
|
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) |
#if !defined(OPENSSL_NO_NEXTPROTONEG) |
if (next_proto.data) |
if (next_proto.data) |
SSL_CTX_set_next_proto_select_cb(ctx, next_proto_cb, &next_proto); |
SSL_CTX_set_next_proto_select_cb(ctx, next_proto_cb, &next_proto); |
#endif |
#endif |
|
|
print_stuff(bio_c_out, con, 1); |
print_stuff(bio_c_out, con, 1); |
SSL_free(con); |
SSL_free(con); |
} |
} |
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) |
#if !defined(OPENSSL_NO_NEXTPROTONEG) |
free(next_proto.data); |
free(next_proto.data); |
#endif |
#endif |
if (ctx != NULL) |
if (ctx != NULL) |
|
|
} |
} |
#endif |
#endif |
|
|
#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) |
#if !defined(OPENSSL_NO_NEXTPROTONEG) |
if (next_proto.status != -1) { |
if (next_proto.status != -1) { |
const unsigned char *proto; |
const unsigned char *proto; |
unsigned int proto_len; |
unsigned int proto_len; |