-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add compile options to libspdm_gen_x509_csr #2825
Comments
@rw8896 is this to save on code size? |
Not really. It caused compiler errors as RSA was not enabled in my mbedtls configuration. After looking into this function further, I think it doesn't allow the caller to specify the pathLen in basic constraints. |
@rw8896 , I am not sure if I understand your problem statement. Usually, it is more helpful to describe what problem you have meet, than just describe the solution. May I know what compiler error you have meet? Based on my understand, if you customize the mbedtls, then you can also customize the cryptolib_mbedtls. |
The following code calls mbedtls_pk_rsa but mbedtls_pk_rsa is not declared/implemented when MBEDTLS_RSA_C is not defined. libspdm/os_stub/cryptlib_mbedtls/pk/x509.c Lines 2034 to 2055 in b327ead
|
libspdm/os_stub/cryptlib_mbedtls/pk/x509.c
Line 1993 in b327ead
libspdm/os_stub/cryptlib_openssl/pk/x509.c
Line 2495 in b327ead
The implementation could use LIBSPDM_ENABLE_CAPABILITY_CSR_CAP to wrap the whole function.
And it should add crypto options (e.g. LIBSPDM_RSA_SSA_2048_SUPPORT) to wrap around the crypto operation code.
The text was updated successfully, but these errors were encountered: