diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index e83fbbf00..16643b285 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h @@ -944,11 +944,11 @@ int ssl_set_own_cert_rsa( ssl_context *ssl, x509_cert *own_cert, * * \return 0 on success, or a specific error code. */ -int ssl_set_own_cert_alt_rsa( ssl_context *ssl, x509_cert *own_cert, - void *rsa_key, - rsa_decrypt_func rsa_decrypt, - rsa_sign_func rsa_sign, - rsa_key_len_func rsa_key_len ); +int ssl_set_own_cert_alt( ssl_context *ssl, x509_cert *own_cert, + void *rsa_key, + rsa_decrypt_func rsa_decrypt, + rsa_sign_func rsa_sign, + rsa_key_len_func rsa_key_len ); #endif /* POLARSSL_X509_PARSE_C */ #if defined(POLARSSL_KEY_EXCHANGE_PSK_ENABLED) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 87a135ab7..00f79f4f2 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -3145,11 +3145,11 @@ int ssl_set_own_cert_rsa( ssl_context *ssl, x509_cert *own_cert, } #endif /* POLARSSL_RSA_C */ -int ssl_set_own_cert_alt_rsa( ssl_context *ssl, x509_cert *own_cert, - void *rsa_key, - rsa_decrypt_func rsa_decrypt, - rsa_sign_func rsa_sign, - rsa_key_len_func rsa_key_len ) +int ssl_set_own_cert_alt( ssl_context *ssl, x509_cert *own_cert, + void *rsa_key, + rsa_decrypt_func rsa_decrypt, + rsa_sign_func rsa_sign, + rsa_key_len_func rsa_key_len ) { ssl->own_cert = own_cert;