projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd41b84
)
Fix test case for a2i_IPADDRESS
author
Amir Mohammadi
<amiremohamadi@yahoo.com>
Wed, 4 Aug 2021 05:14:29 +0000
(09:44 +0430)
committer
Hugo Landau
<hlandau@openssl.org>
Mon, 25 Jul 2022 06:33:21 +0000
(07:33 +0100)
(cherry picked from commit
9b887d5d5a8ef9aa1c3ce6e54a82ddcba25b9415
)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18847)
test/x509_internal_test.c
patch
|
blob
|
history
diff --git
a/test/x509_internal_test.c
b/test/x509_internal_test.c
index 3eec9703528612fbb8accca471adf2d61d454758..63f350f74bbe878fe01b88555e32503bd0b86365 100644
(file)
--- a/
test/x509_internal_test.c
+++ b/
test/x509_internal_test.c
@@
-61,7
+61,6
@@
typedef struct {
const char *ipasc;
const char *data;
int length;
- ASN1_OCTET_STRING ip;
} IP_TESTDATA;
static IP_TESTDATA a2i_ipaddress_tests[] = {
@@
-81,8
+80,10
@@
static IP_TESTDATA a2i_ipaddress_tests[] = {
{"example.test", NULL, 0},
{"", NULL, 0},
+ {"1.2.3.4 ", "\x01\x02\x03\x04", 4},
+ {" 1.2.3.4", "\x01\x02\x03\x04", 4},
+ {" 1.2.3.4 ", "\x01\x02\x03\x04", 4},
{"1.2.3.4.example.test", NULL, 0},
- {"1.2.3.4 ", NULL, 0},
};