lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 23 Nov 2014 19:00:43 -0500 From: Mimi Zohar <zohar@...ux.vnet.ibm.com> To: David Howells <dhowells@...hat.com> Cc: mmarek@...e.cz, d.kasatkin@...sung.com, rusty@...tcorp.com.au, vgoyal@...hat.com, keyrings@...ux-nfs.org, linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH 2/5] X.509: Support X.509 lookup by Issuer+Serial form AuthorityKeyIdentifier Don't assume that the issuer & serialNumber are specified. Signed-off-by: Mimi Zohar <zohar@...ux.vnet.ibm.com> --- crypto/asymmetric_keys/x509_public_key.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c index 9c1a3d6..510269f 100644 --- a/crypto/asymmetric_keys/x509_public_key.c +++ b/crypto/asymmetric_keys/x509_public_key.c @@ -9,6 +9,7 @@ * 2 of the Licence, or (at your option) any later version. */ +#define DEBUG 1 #define pr_fmt(fmt) "X.509: "fmt #include <linux/module.h> #include <linux/kernel.h> @@ -68,12 +69,14 @@ struct key *x509_request_asymmetric_key(struct key *keyring, { struct key *key; key_ref_t ref; - const char *lookup; + const char *lookup = NULL; char *req, *p; - int len; + int len = 0; - lookup = id->data; - len = id->len; + if (id) { + lookup = id->data; + len = id->len; + } if (!lookup) { lookup = skid->data; len = skid->len; -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists