diff options
author | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2007-08-17 18:52:40 +0000 |
---|---|---|
committer | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2007-08-17 18:52:40 +0000 |
commit | 54aa46c2bbaccb8b865de75e140e36cde9919e83 (patch) | |
tree | df0587947cba05d747852f15906b504cf18429cd /epan/dissectors/packet-pkcs12.h | |
parent | 47ec0bead948443f243c38fa83bbed335189b81a (diff) |
Support for decrypting of PKCS#12 bag contents.
Supports RC2, RC4 and 3DES with SHA1 Password-based Encryption using libgcrypt functions.
Password is provided as a preference, as is trying to decode with a empty/NULL password.
svn path=/trunk/; revision=22534
Diffstat (limited to 'epan/dissectors/packet-pkcs12.h')
-rw-r--r-- | epan/dissectors/packet-pkcs12.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pkcs12.h b/epan/dissectors/packet-pkcs12.h index 4940f1b908..9cd17878fe 100644 --- a/epan/dissectors/packet-pkcs12.h +++ b/epan/dissectors/packet-pkcs12.h @@ -1,7 +1,7 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ -/* .\packet-pkcs12.h */ -/* ../../tools/asn2wrs.py -b -e -p pkcs12 -c pkcs12.cnf -s packet-pkcs12-template pkcs12.asn */ +/* ./packet-pkcs12.h */ +/* ../../tools/asn2wrs.py -X -T -b -e -p pkcs12 -c pkcs12.cnf -s packet-pkcs12-template pkcs12.asn */ /* Input file: packet-pkcs12-template.h */ @@ -34,5 +34,8 @@ #ifndef PACKET_PKCS12_H #define PACKET_PKCS12_H +void PBE_reset_parameters(void); +int PBE_decrypt_data(const char *object_identifier_id, tvbuff_t *encrypted_tvb, asn1_ctx_t *actx, proto_item *item); + #endif /* PACKET_PKCS12_H */ |