projects
/
platform
/
upstream
/
openconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
150dc03
)
Return error from OpenSSL load_certificate() for PKCS#11 URLs
author
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 11 Jun 2012 13:57:01 +0000
(14:57 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 11 Jun 2012 13:57:18 +0000
(14:57 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
openssl.c
patch
|
blob
|
history
diff --git
a/openssl.c
b/openssl.c
index
adbb977
..
544cf4c
100644
(file)
--- a/
openssl.c
+++ b/
openssl.c
@@
-593,6
+593,13
@@
static int reload_pem_cert(struct openconnect_info *vpninfo)
static int load_certificate(struct openconnect_info *vpninfo)
{
+ if (!strncmp(vpninfo->sslkey, "pkcs11:", 7) ||
+ !strncmp(vpninfo->cert, "pkcs11:", 7)) {
+ vpn_progress(vpninfo, PRG_ERR,
+ _("This binary built without PKCS#11 support\n"));
+ return -EINVAL;
+ }
+
vpn_progress(vpninfo, PRG_TRACE,
_("Using certificate file %s\n"), vpninfo->cert);