[pkg-opensc-commit] [libp11] 185/239: Increase maximum size of X.509 certificate
Eric Dorland
eric at moszumanska.debian.org
Sat Oct 17 06:21:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit 9f433022a039bbdf31f6c334f442ac3494ac4a07
Author: David Woodhouse <David.Woodhouse at intel.com>
Date: Wed Dec 17 13:21:37 2014 +0000
Increase maximum size of X.509 certificate
2048 bytes isn't quite enough for my VPN certs. Ideally this should be
dynamically allocated but just increasing it to 4096 will probably suffice
for now.
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
src/p11_cert.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/p11_cert.c b/src/p11_cert.c
index 3dcde82..abd0292 100644
--- a/src/p11_cert.c
+++ b/src/p11_cert.c
@@ -136,7 +136,7 @@ static int pkcs11_init_cert(PKCS11_CTX * ctx, PKCS11_TOKEN * token,
PKCS11_TOKEN_private *tpriv;
PKCS11_CERT_private *kpriv;
PKCS11_CERT *cert, *tmp;
- char label[256], data[2048];
+ char label[256], data[4096];
unsigned char id[256];
CK_CERTIFICATE_TYPE cert_type;
size_t size;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git
More information about the pkg-opensc-commit
mailing list