1 /* 2 * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 // 7 8 #include "esp_asio_config.h" 9 #include "internal/ssl_dbg.h" 10 #include "openssl/esp_asio_openssl_stubs.h" 11 12 // Unsupported features as macros to make the assertions more readable 13 #define ESP_OPENSSL_DH_IS_SUPPORTED 0 14 #define ESP_OPENSSL_GENERAL_NAMES_IS_SUPPORTED 0 15 DH_free(DH * r)16void DH_free (DH *r) 17 { 18 SSL_ASSERT3(ESP_OPENSSL_DH_IS_SUPPORTED); 19 } 20 PEM_read_bio_DHparams(BIO * bp,DH ** x,pem_password_cb * cb,void * u)21DH *PEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) 22 { 23 SSL_ASSERT2(ESP_OPENSSL_DH_IS_SUPPORTED); 24 return NULL; 25 } 26 SSL_CTX_set_tmp_dh(SSL_CTX * ctx,const DH * dh)27int SSL_CTX_set_tmp_dh(SSL_CTX *ctx, const DH *dh) 28 { 29 SSL_ASSERT1(ESP_OPENSSL_DH_IS_SUPPORTED); 30 return -1; 31 } 32 GENERAL_NAMES_free(GENERAL_NAMES * gens)33void GENERAL_NAMES_free(GENERAL_NAMES * gens) 34 { 35 SSL_ASSERT3(ESP_OPENSSL_GENERAL_NAMES_IS_SUPPORTED); 36 } 37 X509_get_subject_name(X509 * a)38X509_NAME *X509_get_subject_name(X509 *a) 39 { 40 SSL_ASSERT2(ESP_OPENSSL_GENERAL_NAMES_IS_SUPPORTED); 41 return NULL; 42 } 43 SSL_CTX_clear_chain_certs(SSL_CTX * ctx)44int SSL_CTX_clear_chain_certs(SSL_CTX *ctx) 45 { 46 return 1; 47 } 48