Remove unused |ssl_parse_x509|.

Change-Id: Id81297add5dcba8b861ca107a57a322df4c41c3d
Reviewed-on: https://boringssl-review.googlesource.com/13241
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Adam Langley 2017-01-23 16:35:24 -08:00 committed by Adam Langley
parent 8d5f9da2e3
commit 03b96d70f9
2 changed files with 0 additions and 18 deletions

View File

@ -742,10 +742,6 @@ void ssl_write_buffer_clear(SSL *ssl);
* configured and zero otherwise. */ * configured and zero otherwise. */
int ssl_has_certificate(const SSL *ssl); int ssl_has_certificate(const SSL *ssl);
/* ssl_parse_x509 parses a X509 certificate from |cbs|. It returns NULL
* on error. */
X509 *ssl_parse_x509(CBS *cbs);
/* ssl_session_x509_cache_objects fills out |sess->x509_peer| and /* ssl_session_x509_cache_objects fills out |sess->x509_peer| and
* |sess->x509_chain| from |sess->certs| and erases * |sess->x509_chain| from |sess->certs| and erases
* |sess->x509_chain_without_leaf|. It returns one on success or zero on * |sess->x509_chain_without_leaf|. It returns one on success or zero on

View File

@ -449,20 +449,6 @@ int ssl_has_certificate(const SSL *ssl) {
return ssl->cert->x509_leaf != NULL && ssl_has_private_key(ssl); return ssl->cert->x509_leaf != NULL && ssl_has_private_key(ssl);
} }
X509 *ssl_parse_x509(CBS *cbs) {
if (CBS_len(cbs) > LONG_MAX) {
OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR);
return NULL;
}
const uint8_t *ptr = CBS_data(cbs);
X509 *ret = d2i_X509(NULL, &ptr, (long)CBS_len(cbs));
if (ret == NULL) {
return NULL;
}
CBS_skip(cbs, ptr - CBS_data(cbs));
return ret;
}
STACK_OF(CRYPTO_BUFFER) *ssl_parse_cert_chain(uint8_t *out_alert, STACK_OF(CRYPTO_BUFFER) *ssl_parse_cert_chain(uint8_t *out_alert,
EVP_PKEY **out_pubkey, EVP_PKEY **out_pubkey,
uint8_t *out_leaf_sha256, uint8_t *out_leaf_sha256,