summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-05-31 20:16:31 +0000
committerbeck <beck@openbsd.org>2014-05-31 20:16:31 +0000
commit027d845c348a1a2c2dae03e3af70ba266618ef61 (patch)
tree80f6099c32bd5e5e5d734c2aa36e585320ae4b3f /lib/libssl/src
parentReduce MAXSSIZ to 32MB to match all other platforms; noticed by tobiasu@ (diff)
downloadwireguard-openbsd-027d845c348a1a2c2dae03e3af70ba266618ef61.tar.xz
wireguard-openbsd-027d845c348a1a2c2dae03e3af70ba266618ef61.zip
Change the actual default for returned asn1 strings to be utf8 in the code,
rather than only in the config file, to trip people up later. Found, and fix pleaded for by <spider@skuggor.se> who apparently spent hours chasing it down. ok miod@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/asn1/a_strnid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/asn1/a_strnid.c b/lib/libssl/src/crypto/asn1/a_strnid.c
index d1b804aec12..ac5c374d33e 100644
--- a/lib/libssl/src/crypto/asn1/a_strnid.c
+++ b/lib/libssl/src/crypto/asn1/a_strnid.c
@@ -74,7 +74,7 @@ static int sk_table_cmp(const ASN1_STRING_TABLE * const *a,
* certain software (e.g. Netscape) has problems with them.
*/
-static unsigned long global_mask = 0xFFFFFFFFL;
+static unsigned long global_mask = B_ASN1_UTF8STRING;
void
ASN1_STRING_set_default_mask(unsigned long mask)