From 44dbcc080470e5a72a260450fd4464b3eb90dcde Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 29 Jul 2014 20:34:37 -0400 Subject: [PATCH] Remove SSL_get_client_certificate_types. Chromium is no longer using it. Change-Id: If56340627d2024ff3fb8561405dd0cfc6f4787cb Reviewed-on: https://boringssl-review.googlesource.com/1346 Reviewed-by: Adam Langley --- include/openssl/ssl.h | 4 ---- ssl/ssl_cert.c | 8 -------- 2 files changed, 12 deletions(-) diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 35055813..550361ce 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -2171,10 +2171,6 @@ STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s); int SSL_add_client_CA(SSL *ssl,X509 *x); int SSL_CTX_add_client_CA(SSL_CTX *ctx,X509 *x); -/* Deprecated. Use SSL_get0_certificate_types instead. */ -void SSL_get_client_certificate_types(const SSL *s, const unsigned char **ctype, - size_t *ctype_num); - void SSL_set_connect_state(SSL *s); void SSL_set_accept_state(SSL *s); diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 664db9d5..c3994c40 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -795,14 +795,6 @@ int SSL_CTX_add_client_CA(SSL_CTX *ctx,X509 *x) return(add_client_CA(&(ctx->client_CA),x)); } -void SSL_get_client_certificate_types(const SSL *s, const unsigned char **ctype, - size_t *ctype_num) - { - /* TODO(fork): Remove this function once Chromium is updated - * to use the new one. */ - *ctype_num = SSL_get0_certificate_types((SSL*)s, ctype); - } - static int xname_cmp(const X509_NAME **a, const X509_NAME **b) { return(X509_NAME_cmp(*a,*b));