openssl/crypto/x509
Rich Salz bbf27cd583 Fix bugs in X509_NAME_ENTRY_set
The wrong "set" field was incremented in the wrong place and would
create a new RDN, not a multi-valued RDN.
RDN inserts would happen after not before.
Prepending an entry to an RDN incorrectly created a new RDN

Anything which built up an X509_NAME could get a messed-up structure,
which would then be "wrong" for anyone using that name.

Thanks to Ingo Schwarze for extensive debugging and the initial
fix (documented in GitHub issue #5870).

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/5882)
2018-04-05 22:55:28 -04:00
..
build.info move x_pubkey.c to crypto/x509 2016-03-22 15:28:11 +00:00
by_dir.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
by_file.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
t_crl.c Add padding spaces before printing signature algorithm for CRLs output 2017-11-16 01:19:55 +01:00
t_req.c Update copyright years on all files merged since Jan 1st 2018 2018-01-09 05:49:01 +01:00
t_x509.c Consistent formatting for sizeof(foo) 2017-12-07 19:11:49 -05:00
x509_att.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_cmp.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_d2.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_def.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_err.c make error tables const and separate header file 2017-06-07 15:12:03 -04:00
x509_ext.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_lcl.h Add support for custom signature parameters 2017-04-25 22:12:34 +01:00
x509_lu.c Update copyright year 2018-04-03 13:57:12 +01:00
x509_obj.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_r2x.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
x509_req.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_set.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_trs.c Remove pointless free loop in X509_TRUST_cleanup() 2016-06-20 09:58:58 -04:00
x509_txt.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509_v3.c Update copyright year 2018-02-27 13:59:42 +00:00
x509_vfy.c Remove unnecessary #include <openssl/lhash.h> directives. 2017-09-29 07:38:56 +10:00
x509_vpm.c Remove unnecessary #include <openssl/lhash.h> directives. 2017-09-29 07:38:56 +10:00
x509cset.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509name.c Fix bugs in X509_NAME_ENTRY_set 2018-04-05 22:55:28 -04:00
x509rset.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509spki.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x509type.c Update copyright year 2018-03-20 13:08:46 +00:00
x_all.c Use safestack.h exclusively internally. 2017-09-28 13:14:33 +10:00
x_attrib.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x_crl.c X509_CRL_digest() - ensure precomputed sha1 hash before returning it 2017-01-28 20:07:04 +01:00
x_exten.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
x_name.c Fix error handling/cleanup 2017-09-07 16:01:07 -04:00
x_pubkey.c Fix error handling in i2d* functions. 2017-11-03 15:46:51 +01:00
x_req.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
x_x509.c Remove parentheses of return. 2017-10-18 16:05:06 +01:00
x_x509a.c Constify some inputs buffers 2016-08-23 11:47:22 +02:00