diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-11-20 08:59:19 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-11-20 08:59:19 +0000 |
commit | 42b44648c89781aa449d3add9dcb3348ffb53513 (patch) | |
tree | 4c1a556bd566020b428a6c6664dcd0fcbfed1238 /asn1/pkcs12 | |
parent | 56903273cc78a604fc1b90b1cba4c17eda290dd3 (diff) |
Get rid of Warnings.
svn path=/trunk/; revision=39954
Diffstat (limited to 'asn1/pkcs12')
-rw-r--r-- | asn1/pkcs12/packet-pkcs12-template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asn1/pkcs12/packet-pkcs12-template.c b/asn1/pkcs12/packet-pkcs12-template.c index 9b320690bf..2be750a8f5 100644 --- a/asn1/pkcs12/packet-pkcs12-template.c +++ b/asn1/pkcs12/packet-pkcs12-template.c @@ -90,7 +90,7 @@ static void append_oid(proto_tree *tree, const char *oid) #ifdef HAVE_LIBGCRYPT -int +static int generate_key_or_iv(unsigned int id, tvbuff_t *salt_tvb, unsigned int iter, const char *pw, unsigned int req_keylen, char * keybuf) { @@ -383,7 +383,7 @@ int PBE_decrypt_data(const char *object_identifier_id _U_, tvbuff_t *encrypted_t static int strip_octet_string(tvbuff_t *tvb) { - gint8 class; + gint8 ber_class; gboolean pc, ind; gint32 tag; guint32 len; @@ -393,10 +393,10 @@ static int strip_octet_string(tvbuff_t *tvb) /* if we use CMS (rather than PKCS#7) - which we are - we need to strip the OCTET STRING tag */ /* before proceeding */ - offset = get_ber_identifier(tvb, 0, &class, &pc, &tag); + offset = get_ber_identifier(tvb, 0, &ber_class, &pc, &tag); offset = get_ber_length(tvb, offset, &len, &ind); - if((class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_OCTETSTRING)) + if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_OCTETSTRING)) return offset; return 0; |