-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure.ac: Add in --enable-rpk option #7379
Conversation
Can one of the admins verify this patch? |
Please see https://wolfssl.zendesk.com/hc/requests/17707 for a copy of my Contributor Agreement. |
Hello @mrdeep1, I noticed a clang tidy error with your change so added a fix. That said, I'm not sure my fix was valid. I will have other members of our team have a look at my work as a double check. |
By the way, I can confirm that the Contributor Agreement was accepted. |
@mrdeep1 , Warm regards, Anthony |
@anhu No issues with the additional changes that you have made in the clang tidy up found in other code given that this PR now enables HAVE_RPK by default. Thanks for sorting that out. |
I don't know if you need the commits squashed into a single commit. |
configure.ac
Outdated
@@ -8211,6 +8212,13 @@ AC_ARG_ENABLE([dual-alg-certs], | |||
|
|||
AS_IF([ test "$ENABLED_DUAL_ALG_CERTS" != "no" && test "$ENABLED_EXPERIMENTAL" != "yes" ],[ AC_MSG_ERROR([dual-alg-certs requires --enable-experimental.]) ]) | |||
|
|||
# Adds functionality to support RPK | |||
AC_ARG_ENABLE([rpk], | |||
[AS_HELP_STRING([--enable-rpk],[Enable support for RPK (default: disabled)])], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please expand description for RPK to "Raw Public Key (RPC) RFC7250"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
src/tls.c
Outdated
ret = (int)(OPAQUE8_LEN + cnt * OPAQUE8_LEN); | ||
} | ||
else if (msgType == server_hello || msgType == encrypted_extensions) { | ||
/* sever side */ | ||
cnt = ssl->options.rpkState.sending_ClientCertTypeCnt;/* must be one */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure removing this information about the ssl->options.rpkState.sending_ClientCertTypeCnt
must be one is good. Can you at least leave a comment in there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comment, as well as sanity check that the Cert type actually is RPK as per RFC7250.
Code changes pushed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay to test |
Do I need a login to Jenkins to look at the PRB-master-job failure? |
Sorry we will have to post the results here:
Looks like this change is part of the original PR and is a mixed declaration. Would you mind applying this patch to the PR?
Thanks, |
By default RPK (RFC7250) support is not enabled, but is enabled when --enable-rpk, --enable-all or --enable-dist is used. Makes use of the HAVE_RPK compile time option. Fix clang issue reported in tests/api.c during test suites
Okay to test |
Need to understand the new issue thrown up by PRB-master-job failure |
It was a FIPS test failure and test results were already removed from history. Jenkins retest this please. |
Changes made as requested in review.
configure.ac: Add in --enable-rpk option
Description
By default RPK (RFC7250) support is not enabled, but is enabled when
--enable-rpk, --enable-all or --enable-dist is used.
Makes use of the HAVE_RPK compile time option.
Note: should not be merged until after #7375 is merged.
Testing
Checking that the CFLAGS -DHAVE_RPK option is created when --enable-rpk, --enable-all or --enable-dist options are used, but not set otherwise.
Checklist