You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jepio opened this issue
May 1, 2024
· 2 comments
· Fixed by #5647
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.ClientThis issue points to a problem in the data-plane of the library.KeyVault
Describe the bug
Building an application that includes both sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_client_models.hpp and OASIS pkcs11.h fails due to both defining a symbol named CKM_RSA_AES_KEY_WRAP. Namespacing is irrelevant here, as pkcs11.h defines a macro.
Exception or Stack Trace
gcc compiler error:
In file included from /workspaces/azure_kms_pkcs11/pkcs11_compat.h:12,
from /workspaces/azure_kms_pkcs11/attributes.h:1,
from /workspaces/azure_kms_pkcs11/aws_kms_pkcs11.cpp:11:
/usr/include/p11-kit-1/p11-kit/pkcs11.h:802:42: error: expected unqualified-id before numeric constant
802 | #define CKM_RSA_AES_KEY_WRAP (0x1054UL)
| ^~~~~~~~
/usr/include/p11-kit-1/p11-kit/pkcs11.h:802:42: error: expected ')' before numeric constant
802 | #define CKM_RSA_AES_KEY_WRAP (0x1054UL)
| ~^~~~~~~~
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
Bug Description Added
Repro Steps Added
Setup information Added
The text was updated successfully, but these errors were encountered:
bugThis issue requires a change to an existing behavior in the product in order to be resolved.ClientThis issue points to a problem in the data-plane of the library.KeyVault
Describe the bug
Building an application that includes both
sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_client_models.hpp
and OASISpkcs11.h
fails due to both defining a symbol namedCKM_RSA_AES_KEY_WRAP
. Namespacing is irrelevant here, aspkcs11.h
defines a macro.Exception or Stack Trace
gcc compiler error:
To Reproduce
Code Snippet
Add the code snippet that causes the issue.
Expected behavior
pkcs11 and Azure sdk can be used in the same compilation unit.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: