-/* $OpenBSD: ssl_rsa.c,v 1.44 2022/06/29 21:18:04 tb Exp $ */
+/* $OpenBSD: ssl_rsa.c,v 1.45 2022/06/30 09:08:35 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
pem_password_cb **passwd_cb, void **passwd_arg);
static int ssl_set_cert(SSL_CTX *ctx, SSL *ssl, X509 *x509);
static int ssl_set_pkey(SSL_CTX *ctx, SSL *ssl, EVP_PKEY *pkey);
-static int use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in);
-static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file);
+static int ssl_use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in);
+static int ssl_use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl,
+ const char *file);
int
SSL_use_certificate(SSL *ssl, X509 *x)
* sent to the peer in the Certificate message.
*/
static int
-use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in)
+ssl_use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in)
{
pem_password_cb *passwd_cb;
void *passwd_arg;
}
int
-use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
+ssl_use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
{
BIO *in;
int ret = 0;
goto end;
}
- ret = use_certificate_chain_bio(ctx, ssl, in);
+ ret = ssl_use_certificate_chain_bio(ctx, ssl, in);
end:
BIO_free(in);
int
SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file)
{
- return use_certificate_chain_file(ctx, NULL, file);
+ return ssl_use_certificate_chain_file(ctx, NULL, file);
}
int
SSL_use_certificate_chain_file(SSL *ssl, const char *file)
{
- return use_certificate_chain_file(NULL, ssl, file);
+ return ssl_use_certificate_chain_file(NULL, ssl, file);
}
int
goto end;
}
- ret = use_certificate_chain_bio(ctx, NULL, in);
+ ret = ssl_use_certificate_chain_bio(ctx, NULL, in);
end:
BIO_free(in);