Skip to content

Commit 72d4996

Browse files
authored
Merge pull request #7379 from mrdeep1/enable-rpk
configure.ac: Add in --enable-rpk option
2 parents 2a125ad + 4a1df83 commit 72d4996

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

configure.ac

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ then
868868
test "$enable_earlydata" = "" && enable_earlydata=yes
869869
test "$enable_ech" = "" && enable_ech=yes
870870
test "$enable_srtp" = "" && enable_srtp=yes
871+
test "$enable_rpk" = "" && enable_rpk=yes
871872

872873
if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
873874
then
@@ -8462,6 +8463,13 @@ AC_ARG_ENABLE([dual-alg-certs],
84628463
84638464
AS_IF([ test "$ENABLED_DUAL_ALG_CERTS" != "no" && test "$ENABLED_EXPERIMENTAL" != "yes" ],[ AC_MSG_ERROR([dual-alg-certs requires --enable-experimental.]) ])
84648465
8466+
# Adds functionality to support Raw Public Key (RPK) RFC7250
8467+
AC_ARG_ENABLE([rpk],
8468+
[AS_HELP_STRING([--enable-rpk],[Enable support for Raw Public Key (RPK) RFC7250 (default: disabled)])],
8469+
[ ENABLED_RPK=$enableval ],
8470+
[ ENABLED_RPK=no ]
8471+
)
8472+
84658473
# check if should run the trusted peer certs test
84668474
# (for now checking both C_FLAGS and C_EXTRA_FLAGS)
84678475
AS_CASE(["$CFLAGS $CPPFLAGS"],[*'WOLFSSL_TRUST_PEER_CERT'*],[ENABLED_TRUSTED_PEER_CERT=yes])
@@ -8830,6 +8838,9 @@ AS_IF([test "x$ENABLED_SYS_CA_CERTS" = "xyes"],
88308838
AS_IF([test "x$ENABLED_DUAL_ALG_CERTS" = "xyes"],
88318839
[AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DUAL_ALG_CERTS"])
88328840
8841+
AS_IF([test "x$ENABLED_RPK" = "xyes"],
8842+
[AM_CFLAGS="$AM_CFLAGS -DHAVE_RPK"])
8843+
88338844
AS_IF([test "x$ENABLED_ALTNAMES" = "xyes"],
88348845
[AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALT_NAMES"])
88358846
@@ -9895,6 +9906,7 @@ echo " * TLS v1.0 (Old): $ENABLED_TLSV10"
98959906
echo " * TLS v1.1 (Old): $ENABLED_OLD_TLS"
98969907
echo " * TLS v1.2: $ENABLED_TLSV12"
98979908
echo " * TLS v1.3: $ENABLED_TLS13"
9909+
echo " * RPK: $ENABLED_RPK"
98989910
echo " * Post-handshake Auth: $ENABLED_TLS13_POST_AUTH"
98999911
echo " * Early Data: $ENABLED_TLS13_EARLY_DATA"
99009912
echo " * QUIC: $ENABLED_QUIC"

tests/api.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68189,6 +68189,9 @@ static int test_tls13_rpk_handshake(void)
6818968189
int typeCnt_c;
6819068190
int typeCnt_s;
6819168191
int tp;
68192+
#if defined(WOLFSSL_ALWAYS_VERIFY_CB)
68193+
int isServer;
68194+
#endif
6819268195

6819368196
(void)err;
6819468197
(void)typeCnt_c;
@@ -68808,7 +68811,7 @@ static int test_tls13_rpk_handshake(void)
6880868811
WOLFSSL_SUCCESS);
6880968812

6881068813
/* set certificate verify callback to both client and server */
68811-
int isServer = 0;
68814+
isServer = 0;
6881268815
wolfSSL_SetCertCbCtx(ssl_c, &isServer);
6881368816
wolfSSL_set_verify(ssl_c, SSL_VERIFY_PEER, MyRpkVerifyCb);
6881468817

0 commit comments

Comments
 (0)