22ae0b8577
PKCS#12 encodes passwords as NUL-terminated UCS-2, so the empty password is encoded as {0, 0}. Some implementations use the empty byte array for "no password". OpenSSL considers a non-NULL password as {0, 0} and a NULL password as {}. It then, in high-level PKCS#12 parsing code, tries both options. Match this behavior to appease pyOpenSSL's tests. Change-Id: I07ef91d54454b6f2647f86b7eb9b13509b2876d3 Reviewed-on: https://boringssl-review.googlesource.com/28550 Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
internal.h | ||
p5_pbev2.c | ||
pkcs8_test.cc | ||
pkcs8_x509.c | ||
pkcs8.c | ||
pkcs12_test.cc |