diff options
author | David Benjamin <davidben@chromium.org> | 2014-06-27 00:28:02 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-06-27 00:51:50 +0400 |
commit | d7e23c17a9227b834354ab0971c6919574cd398b (patch) | |
tree | 359f97c05ea41cf97fde043f1dd4c4106fab2e91 /ssl/ssl_cert.c | |
parent | 13ab3e3ce1b2693c5adeef8bb98a4fd66cd51c33 (diff) |
Remove serverinfo and custom extensions support.
If we need an extension, we can implement it in-library.
Change-Id: I0eac5affcd8e7252b998b6c86ed2068234134b08
Reviewed-on: https://boringssl-review.googlesource.com/1051
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 1bad680e..a11d7a3c 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -341,23 +341,6 @@ CERT *ssl_cert_dup(CERT *cert) cert->pkeys[i].authz, cert->pkeys[i].authz_length); } - - if (cert->pkeys[i].serverinfo != NULL) - { - /* Just copy everything. */ - ret->pkeys[i].serverinfo = - OPENSSL_malloc(cert->pkeys[i].serverinfo_length); - if (ret->pkeys[i].serverinfo == NULL) - { - OPENSSL_PUT_ERROR(SSL, ssl_cert_dup, ERR_R_MALLOC_FAILURE); - return NULL; - } - ret->pkeys[i].serverinfo_length = - cert->pkeys[i].serverinfo_length; - memcpy(ret->pkeys[i].serverinfo, - cert->pkeys[i].serverinfo, - cert->pkeys[i].serverinfo_length); - } #endif } @@ -479,12 +462,6 @@ void ssl_cert_clear_certs(CERT *c) OPENSSL_free(cpk->authz); cpk->authz = NULL; } - if (cpk->serverinfo) - { - OPENSSL_free(cpk->serverinfo); - cpk->serverinfo = NULL; - cpk->serverinfo_length = 0; - } #endif /* Clear all flags apart from explicit sign */ cpk->valid_flags &= CERT_PKEY_EXPLICIT_SIGN; |