From 3b878dae7e7bb00f8d886426dc4f75bf45b8113f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 11 Sep 2009 15:35:10 +0200 Subject: Removed chunk_from_buf() in favor of a simpler chunk_from_chars() macro --- src/scepclient/pkcs10.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/scepclient/pkcs10.c') diff --git a/src/scepclient/pkcs10.c b/src/scepclient/pkcs10.c index 654626d15..95fd768b7 100644 --- a/src/scepclient/pkcs10.c +++ b/src/scepclient/pkcs10.c @@ -37,18 +37,12 @@ #include "pkcs10.h" /* some pre-coded OIDs */ - -static u_char ASN1_challengePassword_oid_str[] = { +static chunk_t ASN1_challengePassword_oid = chunk_from_chars( 0x06,0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07 -}; - -static const chunk_t ASN1_challengePassword_oid = chunk_from_buf(ASN1_challengePassword_oid_str); - -static u_char ASN1_extensionRequest_oid_str[] = { +); +static const chunk_t ASN1_extensionRequest_oid = chunk_from_chars( 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E -}; - -static const chunk_t ASN1_extensionRequest_oid = chunk_from_buf(ASN1_extensionRequest_oid_str); +); /** * @brief Adds a subjectAltName in DER-coded form to a linked list -- cgit v1.2.3