mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 22:39:05 +03:00
coap_openssl.c: Fix dtls typo should be tls in coap_dtls_new_context()
Correct parameter typo to SSL_CTX_set_cipher_list() from original TLS merge
This commit is contained in:
1 parent
675edad34c
commit
137789fbc7
1 file changed
+1
-1
+1
-1
@@ -437,7 +437,7 @@ void *coap_dtls_new_context(struct coap_context_t *coap_context) {
|
||||
goto error;
|
||||
SSL_CTX_set_app_data(context->tls.ctx, &context->tls);
|
||||
SSL_CTX_set_min_proto_version(context->tls.ctx, TLS1_VERSION);
|
||||
SSL_CTX_set_cipher_list(context->dtls.ctx, "TLSv1.2:TLSv1.0");
|
||||
SSL_CTX_set_cipher_list(context->tls.ctx, "TLSv1.2:TLSv1.0");
|
||||
/*SSL_CTX_set_verify(context->tls.ctx, SSL_VERIFY_PEER, coap_dtls_verify_cert);*/
|
||||
SSL_CTX_set_info_callback(context->tls.ctx, coap_dtls_info_callback);
|
||||
context->tls.meth = BIO_meth_new(BIO_TYPE_SOCKET, "coapsock");
|
||||
|
||||
Reference in new issue
Block a user