define PKCS12_NO_PERSIST_KEY for old mswin sdk
Roumen Petrov <[email protected]> Sat, 10 Jun 2017 19:45:01 +0300
| Newsgroups | gmane.text.xml.xmlsec |
|---|---|
| Message-ID | <[email protected]> |
Hi, Found in my archives - "0006-define-PKCS12_NO_PERSIST_KEY-for-old-mswin-sdk.patch" Roumen _______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec
0006-define-PKCS12_NO_PERSIST_KEY-for-old-mswin-sdk.patch
(text/x-diff, 788 B)
From 1e436c652e56570aa08e404c320731b79eb62955 Mon Sep 17 00:00:00 2001 From: Roumen Petrov <[email protected]> Date: Sat, 7 Jun 2014 23:50:23 +0300 Subject: [PATCH 6/6] define PKCS12_NO_PERSIST_KEY for old mswin sdk --- src/mscrypto/app.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mscrypto/app.c b/src/mscrypto/app.c index a49acad..add7675 100644 --- a/src/mscrypto/app.c +++ b/src/mscrypto/app.c @@ -26,6 +26,10 @@ #include <xmlsec/mscrypto/x509.h> #include "private.h" +#ifndef PKCS12_NO_PERSIST_KEY +/* Windows Server 2003 and Windows XP: This value is not supported. */ +# define PKCS12_NO_PERSIST_KEY 0x00008000 +#endif /* I don't see any other way then to use a global var to get the * config info to the mscrypto keysstore :( WK -- 1.8.3.1