aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/crl.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-09-11 15:35:10 +0200
committerMartin Willi <martin@strongswan.org>2009-09-11 15:39:35 +0200
commit3b878dae7e7bb00f8d886426dc4f75bf45b8113f (patch)
treebe56294135f3b29788390b4695de1c973b454302 /src/pluto/crl.c
parent3a7bd9bd49685c96313038436b770115651b7caa (diff)
downloadstrongswan-3b878dae7e7bb00f8d886426dc4f75bf45b8113f.tar.bz2
strongswan-3b878dae7e7bb00f8d886426dc4f75bf45b8113f.tar.xz
Removed chunk_from_buf() in favor of a simpler chunk_from_chars() macro
Diffstat (limited to 'src/pluto/crl.c')
-rw-r--r--src/pluto/crl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/crl.c b/src/pluto/crl.c
index 84d58ab85..52f46e701 100644
--- a/src/pluto/crl.c
+++ b/src/pluto/crl.c
@@ -290,7 +290,7 @@ bool insert_crl(x509crl_t *crl, chunk_t crl_uri, bool cache_crl)
{
char path[BUF_LEN], buf[BUF_LEN];
char digest_buf[HASH_SIZE_SHA1];
- chunk_t subjectKeyID = chunk_from_buf(digest_buf);
+ chunk_t subjectKeyID = chunk_create(digest_buf, sizeof(digest_buf));
bool has_keyID;
if (issuer_cert->subjectKeyID.ptr == NULL)