diff options
author | msvensson@neptunus.(none) <> | 2007-02-06 16:28:36 +0100 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2007-02-06 16:28:36 +0100 |
commit | 38fa3ed6935382327463b3fb01a687723f2f6c1c (patch) | |
tree | fd4f2054ede48be0c34797144b581808ff674b1b /extra/yassl/taocrypt/src/asn.cpp | |
parent | 47ae650a57951cb72d3d405e66421f65d05f0ccf (diff) | |
download | mariadb-git-38fa3ed6935382327463b3fb01a687723f2f6c1c.tar.gz |
Bug#25988 openssl_1 Test Case Fails
- Small difference in output from 'X509_NAME_Oneline' between OpenSSL and yaSSL. OpenSSL uses
an extension that allow's the email adress of the cert holder.
- Imported patch for yaSSL "add email to DN output"
Diffstat (limited to 'extra/yassl/taocrypt/src/asn.cpp')
-rw-r--r-- | extra/yassl/taocrypt/src/asn.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/extra/yassl/taocrypt/src/asn.cpp b/extra/yassl/taocrypt/src/asn.cpp index 2994b906e76..a06ab658c7b 100644 --- a/extra/yassl/taocrypt/src/asn.cpp +++ b/extra/yassl/taocrypt/src/asn.cpp @@ -732,9 +732,21 @@ void CertDecoder::GetName(NameType nt) source_.advance(strLen); } else { - // skip + bool email = false; + if (joint[0] == 0x2a && joint[1] == 0x86) // email id hdr + email = true; + source_.advance(oidSz + 1); word32 length = GetLength(source_); + + if (email) { + memcpy(&ptr[idx], "/emailAddress=", 14); + idx += 14; + + memcpy(&ptr[idx], source_.get_current(), length); + idx += length; + } + source_.advance(length); } } |