diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-30 09:08:36 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-30 09:08:36 +0000 |
commit | 4b8a7de62bf02963edfe1305a75722877c5bd689 (patch) | |
tree | e9b68392d1247bb5625a57a55db19173ff2b3856 | |
parent | 177205af2cc8594cc6087702699e28a58ec78bfe (diff) |
Rename use_* to ssl_use_* for consistency.
discussed with jsing
-rw-r--r-- | lib/libssl/ssl_rsa.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/libssl/ssl_rsa.c b/lib/libssl/ssl_rsa.c index 9a1f916e575..192dc4291e6 100644 --- a/lib/libssl/ssl_rsa.c +++ b/lib/libssl/ssl_rsa.c @@ -1,4 +1,4 @@ -/* $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. * @@ -70,8 +70,9 @@ static int ssl_get_password_cb_and_arg(SSL_CTX *ctx, SSL *ssl, 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) @@ -637,7 +638,7 @@ SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d, * 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; @@ -684,7 +685,7 @@ use_certificate_chain_bio(SSL_CTX *ctx, SSL *ssl, BIO *in) } 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; @@ -700,7 +701,7 @@ use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file) goto end; } - ret = use_certificate_chain_bio(ctx, ssl, in); + ret = ssl_use_certificate_chain_bio(ctx, ssl, in); end: BIO_free(in); @@ -710,13 +711,13 @@ use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file) 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 @@ -731,7 +732,7 @@ SSL_CTX_use_certificate_chain_mem(SSL_CTX *ctx, void *buf, int len) goto end; } - ret = use_certificate_chain_bio(ctx, NULL, in); + ret = ssl_use_certificate_chain_bio(ctx, NULL, in); end: BIO_free(in); |