[pkg-opensc-commit] [opensc] 228/295: pkcs15init: use flag symbolic names

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit 4eaaa797e62bd595480e708964bf74ee59d051f7
Author: Timo Teräs <timo.teras at iki.fi>
Date:   Thu Dec 15 11:01:14 2016 +0200

    pkcs15init: use flag symbolic names
---
 src/pkcs15init/pkcs15-lib.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pkcs15init/pkcs15-lib.c b/src/pkcs15init/pkcs15-lib.c
index 5cd17f0..c11f8ae 100644
--- a/src/pkcs15init/pkcs15-lib.c
+++ b/src/pkcs15init/pkcs15-lib.c
@@ -74,11 +74,11 @@
 
 /* Default ID for new key/pin */
 #define DEFAULT_ID			0x45
-#define DEFAULT_PIN_FLAGS		0x03
-#define DEFAULT_PRKEY_FLAGS		0x03
-#define DEFAULT_PUBKEY_FLAGS		0x02
-#define DEFAULT_CERT_FLAGS		0x02
-#define DEFAULT_DATA_FLAGS		0x02
+#define DEFAULT_PIN_FLAGS		(SC_PKCS15_CO_FLAG_PRIVATE|SC_PKCS15_CO_FLAG_MODIFIABLE)
+#define DEFAULT_PRKEY_FLAGS		(SC_PKCS15_CO_FLAG_PRIVATE|SC_PKCS15_CO_FLAG_MODIFIABLE)
+#define DEFAULT_PUBKEY_FLAGS		(SC_PKCS15_CO_FLAG_MODIFIABLE)
+#define DEFAULT_CERT_FLAGS		(SC_PKCS15_CO_FLAG_MODIFIABLE)
+#define DEFAULT_DATA_FLAGS		(SC_PKCS15_CO_FLAG_MODIFIABLE)
 
 #define TEMPLATE_INSTANTIATE_MIN_INDEX	0x0
 #define TEMPLATE_INSTANTIATE_MAX_INDEX	0xFE

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list