From 27c677188e278d66afea3969f51c59cd72d473ae Mon Sep 17 00:00:00 2001 From: Anthony Foiani Date: Sun, 11 Nov 2012 22:46:37 -0700 Subject: [PATCH] pcks11: trivial: fix debug output for CKA_PRIME_1 and CKA_PRIME_2 Without this patch, debugging output issues these as unknown attributes: ... C_CreateObject(): CKA_PRIVATE_EXPONENT = 97F798... ... C_CreateObject(): Attribute 0x124 = EFE5AD... ... C_CreateObject(): Attribute 0x125 = D4D3F6... ... C_CreateObject(): CKA_EXPONENT_1 = 5815FD... With this patch, we see: ... C_CreateObject(): CKA_PRIVATE_EXPONENT = 97F798... ... C_CreateObject(): CKA_PRIME_1 = EFE5AD... ... C_CreateObject(): CKA_PRIME_2 = D4D3F6... ... C_CreateObject(): CKA_EXPONENT_1 = 5815FD... Signed-Off-By: Anthony Foiani --- src/pkcs11/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkcs11/debug.c b/src/pkcs11/debug.c index 51d0a99f..075cee03 100644 --- a/src/pkcs11/debug.c +++ b/src/pkcs11/debug.c @@ -130,8 +130,8 @@ static struct fmap p11_attr_names[] = { ul(CKA_MODULUS_BITS), _(CKA_PUBLIC_EXPONENT), _(CKA_PRIVATE_EXPONENT), - _(CKA_PRIME), - _(CKA_PRIME), + _(CKA_PRIME_1), + _(CKA_PRIME_2), _(CKA_EXPONENT_1), _(CKA_EXPONENT_2), _(CKA_COEFFICIENT),