diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-08 11:31:01 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2018-02-08 11:31:01 +0000 |
commit | f2d2ddc80d388106599cb7c6d52e5e8b81cb49d8 (patch) | |
tree | d0b4631ec76b9a681d7ea236a8a417d9dedcc949 | |
parent | 5be82b7ffda893f1dee30d441835e7bacff68795 (diff) |
Update regress to use tlsext_serverhello_parse().
-rw-r--r-- | regress/lib/libssl/unit/tls_ext_alpn.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/regress/lib/libssl/unit/tls_ext_alpn.c b/regress/lib/libssl/unit/tls_ext_alpn.c index df46b73a061..7dec1bfc51f 100644 --- a/regress/lib/libssl/unit/tls_ext_alpn.c +++ b/regress/lib/libssl/unit/tls_ext_alpn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_ext_alpn.c,v 1.4 2018/01/27 15:30:43 jsing Exp $ */ +/* $OpenBSD: tls_ext_alpn.c,v 1.5 2018/02/08 11:31:00 jsing Exp $ */ /* * Copyright (c) 2015 Doug Hogan <doug@openbsd.org> * @@ -317,15 +317,13 @@ static uint8_t proto_invalid_missing9[] = { #define CHECK_BOTH(c_val, s_val, proto) do { \ { \ - unsigned char *p; \ CBS cbs; \ int al; \ \ CBS_init(&cbs, proto, sizeof(proto)); \ CHECK(c_val == tlsext_clienthello_parse(s, &cbs, &al)); \ - p = proto; \ - CHECK(s_val == ssl_parse_serverhello_tlsext(s, &p, \ - sizeof(proto), &al)); \ + CBS_init(&cbs, proto, sizeof(proto)); \ + CHECK(s_val == tlsext_serverhello_parse(s, &cbs, &al)); \ } \ } while (0) |