]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Simplify the ssl_asn1_table API, remove abstraction (it is used only
authorJoe Orton <jorton@apache.org>
Fri, 4 May 2018 17:56:32 +0000 (17:56 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 4 May 2018 17:56:32 +0000 (17:56 +0000)
commit9e4ad2f685bfde0cdb47c7a9cd95edec40c2e35b
tree9ccf6fdf0791feb9fb7aa2fcec11be81c284edcb
parent06479a8a2af379a254d24b6c5d25a13c31973582
Simplify the ssl_asn1_table API, remove abstraction (it is used only
to cache serialized EVP_PKEYs not any char * blobs), and document.

* modules/ssl/ssl_util.c (ssl_asn1_table_set): Take the EVP_PKEY and
  serialize internally.  Use ap_realloc.  Return the ssl_asn1_t *
  pointer.  Don't call apr_hash_set() for unchanged pointer case.

* modules/ssl/ssl_engine_pphrase.c (ssl_load_encrypted_pkey):
  Adjust for the above.

* modules/ssl/ssl_private.h: Adjust as above, add docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1830927 13f79535-47bb-0310-9956-ffa450edef68
modules/ssl/ssl_engine_pphrase.c
modules/ssl/ssl_private.h
modules/ssl/ssl_util.c