diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-10-24 10:27:26 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-10-29 22:15:56 +0100 |
commit | 2286137c40a2abb26d36beb906962baffd779312 (patch) | |
tree | 77bc27b78932a106aaedd1815d3526b393f6f43b /xmlsecurity/Library_xsec_xmlsec.mk | |
parent | f713caa6f116ee9d6f99e03a688216984cedce44 (diff) |
fix importing the certificate and private key
If importing the certificate and private key is done separately,
they don't associate with each other, so with this you can add
the private key to the certificate that it belongs to. If the
private key is set in this way, then getPrivateKey() call doesn't
look into the database but just returns the private key stored
in the member variable.
Additionally use CERT_DecodeCertFromPackage to import the DER
certificate from the imput as CERT_DecodeDERCertificate doesn't
import a complete certificate and doesn't add it into the
certificate database.
Change-Id: I29876030f167cc5fa6b887f9bfeb0b84622c751e
Reviewed-on: https://gerrit.libreoffice.org/62271
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmlsecurity/Library_xsec_xmlsec.mk')
0 files changed, 0 insertions, 0 deletions