diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-21 14:46:49 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-10-31 17:01:22 +0100 |
commit | a884d5f6040cd5d50482e975ad6cf5b1ce830f6c (patch) | |
tree | ba60093dca11098eee8bdf25161f3ae9f072f299 /tests/dn.c | |
parent | 8039b6a118ef9a25af2c7f795836a0afcfdddc74 (diff) | |
download | gnutls-a884d5f6040cd5d50482e975ad6cf5b1ce830f6c.tar.gz |
tests: modified to account for backwards-encoded DN (according to RFC4514)
Diffstat (limited to 'tests/dn.c')
-rw-r--r-- | tests/dn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dn.c b/tests/dn.c index 97c3ea1041..7a2177b371 100644 --- a/tests/dn.c +++ b/tests/dn.c @@ -121,7 +121,7 @@ void doit(void) if (ret < 0) fail("gnutls_x509_dn_get_str %d\n", ret); - if (strdn.size != 44 || strcmp((char*)strdn.data, "CN=CAcert WoT User,EMAIL=simon@josefsson.org") != 0) { + if (strdn.size != 44 || strcmp((char*)strdn.data, "EMAIL=simon@josefsson.org,CN=CAcert WoT User") != 0) { fail("gnutls_x509_dn_get_str string comparison failed: '%s'/%d\n", strdn.data, strdn.size); } gnutls_free(strdn.data); |