Document APIs relating to configuring certificates and private keys. The APIs that are CTRL macros will be documented (and converted to functions) in a follow-up. Change-Id: I7d086db1768aa3c16e8d7775b0c818b72918f4c2 Reviewed-on: https://boringssl-review.googlesource.com/5354 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 6a694b3..29f8277 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -515,7 +515,7 @@ X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl) { return ssl->param; } -void SSL_certs_clear(SSL *s) { ssl_cert_clear_certs(s->cert); } +void SSL_certs_clear(SSL *ssl) { ssl_cert_clear_certs(ssl->cert); } void SSL_free(SSL *ssl) { if (ssl == NULL) { @@ -1813,13 +1813,13 @@ X509_VERIFY_PARAM_set_depth(ctx->param, depth); } -void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb)(SSL *ssl, void *arg), +void SSL_CTX_set_cert_cb(SSL_CTX *ctx, int (*cb)(SSL *ssl, void *arg), void *arg) { - ssl_cert_set_cert_cb(c->cert, cb, arg); + ssl_cert_set_cert_cb(ctx->cert, cb, arg); } -void SSL_set_cert_cb(SSL *s, int (*cb)(SSL *ssl, void *arg), void *arg) { - ssl_cert_set_cert_cb(s->cert, cb, arg); +void SSL_set_cert_cb(SSL *ssl, int (*cb)(SSL *ssl, void *arg), void *arg) { + ssl_cert_set_cert_cb(ssl->cert, cb, arg); } void ssl_get_compatible_server_ciphers(SSL *s, uint32_t *out_mask_k,