diff options
Diffstat (limited to 'src/lib/tests')
| -rw-r--r-- | src/lib/tests/auth_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tests/auth_test.c b/src/lib/tests/auth_test.c index ede294b8..896c42b0 100644 --- a/src/lib/tests/auth_test.c +++ b/src/lib/tests/auth_test.c @@ -90,6 +90,7 @@ static const char * server_ec_pk = \ "-----END PUBLIC KEY-----\n"; /* Valid signed server certificate for test-1.unittest.o7s */ +#define SSC_TEXT_SIZE 2295 /* size of cleartext certificate */ static const char * signed_server_crt = \ "-----BEGIN CERTIFICATE-----\n" "MIIDiTCCAy+gAwIBAgICEAUwCgYIKoZIzj0EAwIwWjELMAkGA1UEBhMCQkUxDDAK\n" @@ -573,7 +574,7 @@ int test_auth_bad_signature(void) int test_crt_str(void) { - char str[2295]; + char str[SSC_TEXT_SIZE + 1]; void * crt; TEST_START(); |
