summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c')
-rw-r--r--FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c b/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c
index 728d9f944..27ce70750 100644
--- a/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c
+++ b/FreeRTOS-Plus/Demo/corePKCS11_Windows_Simulator/examples/sign_and_verify.c
@@ -164,7 +164,7 @@ void vPKCS11SignVerifyDemo( void )
xResult = xFindObjectWithLabelAndClass( hSession,
pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS,
sizeof( pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS ) - 1UL,
- CKO_PRIVATE_KEY,
+ CKO_PUBLIC_KEY,
&xPublicKeyHandle );
configASSERT( xResult == CKR_OK );
configASSERT( xPublicKeyHandle != CK_INVALID_HANDLE );