summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-05-31 20:16:32 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-05-31 20:16:32 +0000
commit60e3bbc332c051c281ca1383101dbd67e02e4ffa (patch)
tree1da837645c502dd76facd6ad0dc3b74a16972b1a
parentf0c9abe2cd4bef6932d57c26b19496a346b9ba1a (diff)
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@
-rw-r--r--lib/libcrypto/asn1/a_strnid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/a_strnid.c b/lib/libcrypto/asn1/a_strnid.c
index d1b804aec12..ac5c374d33e 100644
--- a/lib/libcrypto/asn1/a_strnid.c
+++ b/lib/libcrypto/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)