Fixed function pointer
FossilOrigin-Name: 5e7d865d7a52fe819fabb4efd6f2e6116aba34969a4ae86437f63fefbb476c84
This commit is contained in:
parent
9ed5b74a35
commit
832b7e358a
@ -357,7 +357,7 @@ struct dtls_openssl_data * dtls_openssl_data_create(struct conn * conn, const SS
|
|||||||
/* setup debugging */
|
/* setup debugging */
|
||||||
#ifdef WITH_CW_LOG_DEBUG
|
#ifdef WITH_CW_LOG_DEBUG
|
||||||
SSL_CTX_set_msg_callback(d->ctx,dtls_debug_cb);
|
SSL_CTX_set_msg_callback(d->ctx,dtls_debug_cb);
|
||||||
SSL_CTX_set_info_callback (d->ctx, &dtls_info_cb);
|
SSL_CTX_set_info_callback (d->ctx, dtls_info_cb);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -371,6 +371,8 @@ struct dtls_openssl_data * dtls_openssl_data_create(struct conn * conn, const SS
|
|||||||
|
|
||||||
rc = SSL_CTX_load_verify_locations(d->ctx,"../../ssl/root-ca.pem",NULL);
|
rc = SSL_CTX_load_verify_locations(d->ctx,"../../ssl/root-ca.pem",NULL);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// SSL_CTX_set_session_cache_mode(d->ctx, SSL_SESS_CACHE_BOTH);
|
// SSL_CTX_set_session_cache_mode(d->ctx, SSL_SESS_CACHE_BOTH);
|
||||||
SSL_CTX_set_options(d->ctx, SSL_OP_NO_SSLv2 |SSL_OP_NO_SSLv3 );
|
SSL_CTX_set_options(d->ctx, SSL_OP_NO_SSLv2 |SSL_OP_NO_SSLv3 );
|
||||||
@ -379,6 +381,9 @@ struct dtls_openssl_data * dtls_openssl_data_create(struct conn * conn, const SS
|
|||||||
|
|
||||||
SSL_CTX_set_timeout(d->ctx,30);
|
SSL_CTX_set_timeout(d->ctx,30);
|
||||||
|
|
||||||
|
// rc =SSL_CTX_set_max_proto_version (d->ctx,DTLS1_VERSION);
|
||||||
|
// printf("MAXMAMX = %d\n",rc);
|
||||||
|
|
||||||
|
|
||||||
// SSL_CTX_set_verify(d->ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, dtls_verify_callback);
|
// SSL_CTX_set_verify(d->ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, dtls_verify_callback);
|
||||||
// SSL_CTX_set_verify(d->ctx, SSL_VERIFY_PEER, dtls_verify_callback);
|
// SSL_CTX_set_verify(d->ctx, SSL_VERIFY_PEER, dtls_verify_callback);
|
||||||
|
Loading…
Reference in New Issue
Block a user