aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pkcs1.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-05-22 16:17:54 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-05-22 16:17:54 +0000
commitdca634c4de4fb7e0cf17ca2bd616faa1e4d9348d (patch)
tree729f5dc1ed800790661b93fe56ac019bdb41130b /epan/dissectors/packet-pkcs1.c
parent5e33afbf50f7690a39415e0e4696ddbbbc64caff (diff)
Prepare for the use of the new -X parameter for BER encoded protocols.
svn path=/trunk/; revision=21889
Diffstat (limited to 'epan/dissectors/packet-pkcs1.c')
-rw-r--r--epan/dissectors/packet-pkcs1.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-pkcs1.c b/epan/dissectors/packet-pkcs1.c
index ce3333d555..c256012511 100644
--- a/epan/dissectors/packet-pkcs1.c
+++ b/epan/dissectors/packet-pkcs1.c
@@ -123,7 +123,7 @@ static int dissect_coefficient(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offs
}
-static const ber_sequence_t RSAPublicKey_sequence[] = {
+static const ber_old_sequence_t RSAPublicKey_sequence[] = {
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_modulus },
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_publicExponent },
{ 0, 0, 0, NULL }
@@ -131,8 +131,8 @@ static const ber_sequence_t RSAPublicKey_sequence[] = {
int
dissect_pkcs1_RSAPublicKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- RSAPublicKey_sequence, hf_index, ett_pkcs1_RSAPublicKey);
+ offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
+ RSAPublicKey_sequence, hf_index, ett_pkcs1_RSAPublicKey);
return offset;
}
@@ -151,7 +151,7 @@ static int dissect_version(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _
}
-static const ber_sequence_t RSAPrivateKey_sequence[] = {
+static const ber_old_sequence_t RSAPrivateKey_sequence[] = {
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_version },
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_modulus },
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_publicExponent },
@@ -166,8 +166,8 @@ static const ber_sequence_t RSAPrivateKey_sequence[] = {
int
dissect_pkcs1_RSAPrivateKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- RSAPrivateKey_sequence, hf_index, ett_pkcs1_RSAPrivateKey);
+ offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
+ RSAPrivateKey_sequence, hf_index, ett_pkcs1_RSAPrivateKey);
return offset;
}
@@ -198,7 +198,7 @@ static int dissect_digest(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U
}
-static const ber_sequence_t DigestInfo_sequence[] = {
+static const ber_old_sequence_t DigestInfo_sequence[] = {
{ BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_digestAlgorithm },
{ BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, BER_FLAGS_NOOWNTAG, dissect_digest },
{ 0, 0, 0, NULL }
@@ -206,8 +206,8 @@ static const ber_sequence_t DigestInfo_sequence[] = {
int
dissect_pkcs1_DigestInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- DigestInfo_sequence, hf_index, ett_pkcs1_DigestInfo);
+ offset = dissect_ber_old_sequence(implicit_tag, actx, tree, tvb, offset,
+ DigestInfo_sequence, hf_index, ett_pkcs1_DigestInfo);
return offset;
}