diff options
author | Anthony Hu <anth_hu@hotmail.com> | 2021-03-10 11:15:57 -0500 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-03-11 20:11:04 +0100 |
commit | 0a8e6c1fb77612feba350a67dad3e548300785a7 (patch) | |
tree | 6304b7d69ebb46758fc0b920db90544f1673c403 /ssl/t1_lib.c | |
parent | 92e9359b24660228fa8fbf9129837ce5ab287715 (diff) | |
download | openssl-0a8e6c1fb77612feba350a67dad3e548300785a7.tar.gz |
Increase the upper limit on group name length
While all the standardized groups would fit within the old limit,
with the addition of providers, some might want to experiment with
new and unstandardized groups. As such, their names might not fit
within the old limit.
Define it as GROUP_NAME_BUFFER_LENGTH with value 64.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14502)
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r-- | ssl/t1_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 4d66db9f9d..a389b0feed 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -693,7 +693,7 @@ err: /* TODO(3.0): An arbitrary amount for now. Take another look at this */ # define MAX_GROUPLIST 40 - +# define GROUP_NAME_BUFFER_LENGTH 64 typedef struct { SSL_CTX *ctx; size_t gidcnt; @@ -705,7 +705,7 @@ static int gid_cb(const char *elem, int len, void *arg) gid_cb_st *garg = arg; size_t i; uint16_t gid = 0; - char etmp[20]; + char etmp[GROUP_NAME_BUFFER_LENGTH]; if (elem == NULL) return 0; |