]>
git.ipfire.org Git - thirdparty/gnutls.git/log
Nikos Mavrogiannopoulos [Fri, 6 Jan 2017 07:14:09 +0000 (08:14 +0100)]
openpgp.h: all openpgp functionality was marked as deprecated
This is to prevent new applications using that functionality.
As the OpenPGP certificate for HTTPS (or TLS in general) never got
any traction, GnuTLS is the only implementation supporting it,
and the quality of the OpenPGP supporting code is questionable,
we deprecate that code with the intention to drop it completely
when an opportunity is given.
Relates #102
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 9 Jan 2017 07:36:02 +0000 (08:36 +0100)]
tests: added missing file
Nikos Mavrogiannopoulos [Mon, 9 Jan 2017 07:18:33 +0000 (08:18 +0100)]
CONTRIBUTING.md: Improve instructions on git-template [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Alon Bar-Lev [Thu, 5 Jan 2017 08:35:29 +0000 (10:35 +0200)]
tests: remove bash usage
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Thu, 5 Jan 2017 12:01:30 +0000 (14:01 +0200)]
tests: suite: chain: support separate builddir
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Thu, 5 Jan 2017 08:34:07 +0000 (10:34 +0200)]
tests: skip tests that requires tools if tools are disabled
building with --disable-tools should not cause test failure.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Tue, 3 Jan 2017 14:46:46 +0000 (16:46 +0200)]
gitignore: update [ci skip]
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Tue, 3 Jan 2017 14:45:19 +0000 (16:45 +0200)]
gitignore: sort()
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 14:22:13 +0000 (15:22 +0100)]
opencdk: added error checking in the stream reading functions
This addresses an out of memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=337
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 14:03:12 +0000 (15:03 +0100)]
tests: added test case with invalid openpgp cert
This triggers an out of memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=337
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 13:56:50 +0000 (14:56 +0100)]
opencdk: cdk_pk_get_keyid: fix stack overflow
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=340
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 13:48:38 +0000 (14:48 +0100)]
tests: added test case with invalid openpgp cert
This triggers a memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=340
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 13:47:11 +0000 (14:47 +0100)]
tests: added test case with invalid openpgp cert
This triggers a memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=346
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 13:42:03 +0000 (14:42 +0100)]
opencdk: read_attribute: added more precise checks when reading stream
That addresses heap read overflows found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=338
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=346
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 13:34:05 +0000 (14:34 +0100)]
tests: added test case with invalid openpgp cert
This triggers a memory error. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=338
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 13:31:26 +0000 (14:31 +0100)]
tests: openpgp-cert-parser: simplified
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:46:26 +0000 (09:46 +0100)]
auth rsa: eliminated memory leak on pkcs-1 formatting attack path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:42:25 +0000 (09:42 +0100)]
tests: added reproducer for server issues
This allows to reproduce issues found on server side, by adding
a transcript in server-interesting. Currently it contains values
found using oss-fuzz.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:32:17 +0000 (09:32 +0100)]
_decode_pkcs8_dsa_key: fixed memory leak on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:28:23 +0000 (09:28 +0100)]
decode_private_key_info: eliminate memory leaks on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:26:07 +0000 (09:26 +0100)]
_gnutls_x509_read_dsa_params: update params structure parameters size on successful read
That will allow proper deinitialization of the parameters even if
the structure fill up doesn't succeed.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:18:03 +0000 (09:18 +0100)]
tests: added test with private key that causes memory leak
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=371
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:10:54 +0000 (09:10 +0100)]
_gnutls_pkcs12_string_to_key: avoid division by zero when salt_size = 0
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Wed, 4 Jan 2017 08:07:10 +0000 (09:07 +0100)]
tests: added test with PKCS#8 key that signals FPE
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=376
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Alon Bar-Lev [Sat, 31 Dec 2016 03:07:47 +0000 (05:07 +0200)]
tests: skip tests that requires tools if tools are disabled
building with --disable-tools should not cause test failure.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Tue, 3 Jan 2017 12:56:05 +0000 (14:56 +0200)]
tests: cert-tests: pkcs12 drop builddir usage
sync with other tests
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev [Tue, 3 Jan 2017 12:40:36 +0000 (14:40 +0200)]
tests: suite: pkcs11: skip if no softhsm
similar to other tests
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 15:10:07 +0000 (16:10 +0100)]
gnutls_x509_ext_import_policies: fixed memory leak on error path
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 14:53:27 +0000 (15:53 +0100)]
tests: added test case with invalid X.509 cert
This triggers a memory leak. Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=294
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 14:49:37 +0000 (15:49 +0100)]
x509 output: fixed memory leak in AIA extension printing
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 14:46:41 +0000 (15:46 +0100)]
tests: added test case with invalid X.509 cert
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=300
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 14:00:59 +0000 (15:00 +0100)]
doc: document how to enhance the testsuite with issues found
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 13:37:18 +0000 (14:37 +0100)]
status_request: eliminated leak on error path
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=269
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 12:49:18 +0000 (13:49 +0100)]
proc_server_kx: eliminated leak on error path
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=272
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 13:49:03 +0000 (14:49 +0100)]
tests: added reproducer for client issues
This allows to reproduce issues found on client handling, by adding
a transcript in client-interesting. Currently it contains values
found using oss-fuzz.
The client3.disabled transcript is disabled because it depends
on a fix in nettle.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 12:39:43 +0000 (13:39 +0100)]
tests: do not run key-tests under leak sanitizer
The reason is that we cannot distinguish between a memory leak on
application failure (which is followed by exit- thus should be ignored)
and an address sanitizer issue (which should never be ignored).
As such we disable leak detection with asan and rely on valgrind.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 12:20:16 +0000 (13:20 +0100)]
tests: illegal-rsa: don't hide stderr
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 09:47:24 +0000 (10:47 +0100)]
tests: added suite for checking PKCS#7 structure import
The initial (problematic) structures have been obtained from oss-fuzz
project.
Nikos Mavrogiannopoulos [Tue, 3 Jan 2017 10:39:13 +0000 (11:39 +0100)]
fuzz: added basic Makefile to assist in reproducing [ci skip]
Also updated README.md
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 16:24:41 +0000 (17:24 +0100)]
Simplified contribution policy [ci skip]
Also added a template to assist in the required steps to contribute.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 16:05:29 +0000 (17:05 +0100)]
_gnutls_x509_get_signature: fix memory leak on error path
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 16:04:29 +0000 (17:04 +0100)]
tests: added test case with invalid X.509 certificate
This certificate causes a memory leak while printing.
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=280
Relates #156
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 14:07:48 +0000 (15:07 +0100)]
valgrind: use different exit code to signify error
This allows the test suite to differentiate between valgrind and expected
errors from tools.
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 14:01:26 +0000 (15:01 +0100)]
tests: cert-tests: force asan to return an error code other than one on failure
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 14:00:24 +0000 (15:00 +0100)]
gnutls_pkcs8_info: addressed memory leak on error path
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 13:55:14 +0000 (14:55 +0100)]
certtool: pkcs8_info_int: fix memory leak
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 12:44:46 +0000 (13:44 +0100)]
wrap_nettle_mpi_modm: bail on a modulus that is zero
Relates #156
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 12:32:41 +0000 (13:32 +0100)]
tests: added test for invalid private keys
Also force asan to return an error code other than one (the normally
expected for invalid keys).
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 11:02:53 +0000 (12:02 +0100)]
x509: address leak in print_altname - cert printing
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 11:03:35 +0000 (12:03 +0100)]
tests: added certificate to reproduce memory leak
Found by oss-fuzz project:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=299
Relates #156
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 10:05:21 +0000 (11:05 +0100)]
tests: added test case with invalid PKCS#8 data
Issue found using oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=363
Relates #156
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 10:20:45 +0000 (11:20 +0100)]
nettle: added a safety net on wrap_nettle_cipher_setiv()
Return error if attempting to set invalid IV size.
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 10:51:10 +0000 (11:51 +0100)]
pkcs7 decrypt: require a valid IV size on all ciphers
That is, do not accept the IV size present in the structure as valid
without checking.
Relates #156
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 12:26:29 +0000 (13:26 +0100)]
fuzz: added a PBES1 PKCS#8 private key file into corpus
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 12:23:01 +0000 (13:23 +0100)]
pkcs8: pkcs8_key_info() will correctly detect non-encrypted files
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 12:19:49 +0000 (13:19 +0100)]
certtool: don't print PKCS#8 information when outputting DER data
Alex Gaynor [Sun, 1 Jan 2017 14:15:09 +0000 (09:15 -0500)]
Corrected a leak in OpenPGP sub-packet parsing.
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 09:13:48 +0000 (10:13 +0100)]
doc: fixed copyright date in gnutls.texi
Nikos Mavrogiannopoulos [Mon, 2 Jan 2017 07:43:47 +0000 (08:43 +0100)]
gnutls_rnd: document the available values of level [ci skip]
This enables using the function by only checking the man page.
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 15:45:19 +0000 (16:45 +0100)]
pkcs11 verification: ensure that an issuer we retrieve is not blacklist
It may happen in p11-kit trust module that a trusted certificate is
both in the trusted set, and the blacklisted set. To avoid accepting
a certificate when in both sets, we always check whether a trusted
issuer certificate is in the blacklisted set.
Alex Gaynor [Sat, 31 Dec 2016 02:17:22 +0000 (21:17 -0500)]
Attempt to fix a leak in OpenPGP cert parsing.
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 13:57:57 +0000 (14:57 +0100)]
tests: enable all the ciphersuite in openssl cli for DSS checks
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 10:48:44 +0000 (11:48 +0100)]
certtool: improved error reporting on file error
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 12:27:10 +0000 (13:27 +0100)]
tests: don't check against 3DES if disabled in openssl
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 12:25:23 +0000 (13:25 +0100)]
tests: do not pass the -dhparams to openssl 1.1.0; it doesn't work
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 11:14:44 +0000 (12:14 +0100)]
tests: simplified DH params format
Also switch to RFC7919 DH params.
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 11:13:20 +0000 (12:13 +0100)]
tests: corrected type in openssl compat tests
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 11:12:33 +0000 (12:12 +0100)]
tests: added common variable for DH parameters
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 09:36:37 +0000 (10:36 +0100)]
tests: fixed paths in compat tests
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 08:04:59 +0000 (09:04 +0100)]
tests: better termination checking in compat tests
This ensures that the exit code of all spawned processes is
checked.
Nikos Mavrogiannopoulos [Sat, 31 Dec 2016 09:12:34 +0000 (10:12 +0100)]
cfg.mk: exclude devel/ subdirectory from syntax checks
Nikos Mavrogiannopoulos [Fri, 30 Dec 2016 14:50:45 +0000 (15:50 +0100)]
certtool: properly report unencrypted PKCS#8 keys in --p8-info
Nikos Mavrogiannopoulos [Fri, 30 Dec 2016 14:41:53 +0000 (15:41 +0100)]
fuzz: added decrypted PKCS#8 keys
Nikos Mavrogiannopoulos [Fri, 30 Dec 2016 14:23:17 +0000 (15:23 +0100)]
fuzz: added PKCS#8 keys with low iteration count
This makes sure that the fuzzer will not timeout while
trying to decode keys.
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 10:01:37 +0000 (11:01 +0100)]
submodules: use the github mirror of openssl
Alex Gaynor [Mon, 26 Dec 2016 18:15:25 +0000 (13:15 -0500)]
Do not infinite loop if an EOF occurs while skipping a PGP packet
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Alex Gaynor [Tue, 27 Dec 2016 14:45:31 +0000 (09:45 -0500)]
Added a fuzzer for OpenPGP cert parsing
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 08:59:34 +0000 (09:59 +0100)]
fuzz: document the convention for initial values
Nikos Mavrogiannopoulos [Wed, 28 Dec 2016 08:58:20 +0000 (09:58 +0100)]
fuzz: Added initial values for DN, PKCS8 and X.509 tests
Alex Gaynor [Mon, 26 Dec 2016 15:59:03 +0000 (15:59 +0000)]
Added a parser for PKCS7 importing and printing
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 07:38:41 +0000 (08:38 +0100)]
fuzz: added X.509 DN parser
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 07:35:45 +0000 (08:35 +0100)]
fuzz: added PKCS#8 private key parser
Nikos Mavrogiannopoulos [Wed, 21 Dec 2016 07:18:24 +0000 (08:18 +0100)]
configure: introduced --with-priority-string option
This allows specifying the priority string to be used with
gnutls_set_default_priority() on configure time.
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:35:53 +0000 (21:35 +0100)]
priorities: reset the profile flags when appending new flags
That is, to avoid causing issues to applications calling gnutls_*priority_set()
multiple times with different parameters. In that case if multiple profiles are
used the outcome could be undefined. Now, the last call will prevail.
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:39:02 +0000 (21:39 +0100)]
gnutls_session_set_verify_cert: doc update
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:26:09 +0000 (21:26 +0100)]
Revert "priorities: set the additional verify flags instead of appending them"
This reverts commit
aaf49747f981f6c17cdc9ea7495a8948a5015ae2 .
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 20:19:05 +0000 (21:19 +0100)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 19:31:27 +0000 (19:31 +0000)]
Merge branch 'tmp-cert-updates' into 'master'
Updates in certificate handling on certtool
See merge request !181
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 18:01:31 +0000 (19:01 +0100)]
tests: added check for certtool loading CA certificates from PKCS#11
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 14:52:49 +0000 (15:52 +0100)]
certtool: document that --load-ca-certificate can be used with PKCS#11 URLs
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 14:44:20 +0000 (15:44 +0100)]
certtool: load_ca_cert() can load a CA from URLs
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 10:36:13 +0000 (11:36 +0100)]
certtool: unified the CA certificate loading process
That is, combined how CA certificates are loaded for --verify-chain,
--verify and --p7-verify. It is based on the trust list high level
functions, something that allows PKCS#11 URLs to be specified in
--load-ca-certificate.
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 15:15:50 +0000 (16:15 +0100)]
doc update [ci skip]
Nikos Mavrogiannopoulos [Fri, 9 Dec 2016 15:21:30 +0000 (16:21 +0100)]
.gitlab-ci.yml: changed buildroot to fedora25
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 11:09:41 +0000 (11:09 +0000)]
Merge branch 'tmp-priority-fix' into 'master'
Fix issue with multiple calls to priority functions
See merge request !195
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 10:01:10 +0000 (11:01 +0100)]
tests: added check for multiple calls to gnutls_priority_set_direct()
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 09:49:34 +0000 (10:49 +0100)]
priorities: set the additional verify flags instead of appending them
That is, to avoid causing issues to applications calling gnutls_*priority_set()
multiple times with different parameters. In that case if multiple profiles are
used the combo could be undefined.
Nikos Mavrogiannopoulos [Mon, 19 Dec 2016 09:36:01 +0000 (10:36 +0100)]
verify: print certificate on sec param failure
Nikos Mavrogiannopoulos [Fri, 16 Dec 2016 16:19:29 +0000 (16:19 +0000)]
Merge branch 'tmp-x509-print-fix' into 'master'
Updates in X.509 certificate handling
Relates to #156
See merge request !192
Nikos Mavrogiannopoulos [Thu, 15 Dec 2016 14:08:31 +0000 (15:08 +0100)]
x509: corrected leak in certificate printing
The leak could be triggered if the certificate policies to be imported are
invalid.