diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-17 16:11:33 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-17 16:11:33 +0000 |
commit | 9b91b81870d4b792c9e826349c34d98b7a835e20 (patch) | |
tree | 44283bfd7b9167bccd3e02dbff1cf192b7b3df58 /src/scepclient/scep.c | |
parent | c04e75487ffab245d35461b1d84eddd1e1408ba8 (diff) | |
download | strongswan-9b91b81870d4b792c9e826349c34d98b7a835e20.tar.bz2 strongswan-9b91b81870d4b792c9e826349c34d98b7a835e20.tar.xz |
ported most of the libstrongswan chunk_t macros to pluto
Diffstat (limited to 'src/scepclient/scep.c')
-rw-r--r-- | src/scepclient/scep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scepclient/scep.c b/src/scepclient/scep.c index d9d872225..f603b5c29 100644 --- a/src/scepclient/scep.c +++ b/src/scepclient/scep.c @@ -53,11 +53,11 @@ static char ASN1_transId_oid_str[] = { }; static const chunk_t ASN1_messageType_oid = - strchunk(ASN1_messageType_oid_str); + chunk_from_buf(ASN1_messageType_oid_str); static const chunk_t ASN1_senderNonce_oid = - strchunk(ASN1_senderNonce_oid_str); + chunk_from_buf(ASN1_senderNonce_oid_str); static const chunk_t ASN1_transId_oid = - strchunk(ASN1_transId_oid_str); + chunk_from_buf(ASN1_transId_oid_str); static const char *pkiStatus_values[] = { "0", "2", "3" }; @@ -395,8 +395,8 @@ scep_build_request(chunk_t data, chunk_t transID, scep_msg_t msg request = pkcs7_build_signedData(envelopedData, attributes , signer_cert, digest_alg, private_key); - freeanychunk(envelopedData); - freeanychunk(attributes); + free(envelopedData.ptr); + free(attributes.ptr); return request; } @@ -590,7 +590,7 @@ scep_parse_response(chunk_t response, chunk_t transID, contentInfo_t *data { return "error parsing the scep response attributes"; } - if (!same_chunk(transID, attrs->transID)) + if (!chunk_equals(transID, attrs->transID)) { return "transaction ID of scep response does not match"; } |