From a9a2c040bafc6569120ae8c9e8332343c6974e3a Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 18 Apr 2023 16:44:54 +0200 Subject: [PATCH] pkcs7: Fix build with DEBUG_LEVEL < 2 --- src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c b/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c index 30d536911c..7210b728d7 100644 --- a/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c +++ b/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c @@ -405,7 +405,7 @@ static bool parse(private_pkcs7_signed_data_t *this, chunk_t content) { asn1_parser_t *parser; chunk_t object; - int objectID, version; + int objectID; signerinfo_t *info = NULL; bool success = FALSE; @@ -418,8 +418,7 @@ static bool parse(private_pkcs7_signed_data_t *this, chunk_t content) switch (objectID) { case PKCS7_VERSION: - version = object.len ? (int)*object.ptr : 0; - DBG2(DBG_LIB, " v%d", version); + DBG2(DBG_LIB, " v%d", object.len ? (int)*object.ptr : 0); break; case PKCS7_CONTENT_INFO: this->content = lib->creds->create(lib->creds, @@ -448,8 +447,7 @@ static bool parse(private_pkcs7_signed_data_t *this, chunk_t content) this->signerinfos->insert_last(this->signerinfos, info); break; case PKCS7_SIGNER_INFO_VERSION: - version = object.len ? (int)*object.ptr : 0; - DBG2(DBG_LIB, " v%d", version); + DBG2(DBG_LIB, " v%d", object.len ? (int)*object.ptr : 0); break; case PKCS7_ISSUER: info->issuer = identification_create_from_encoding( -- 2.47.2