summaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-06-07 17:40:21 +0100
committerPauli <paul.dale@oracle.com>2019-07-12 06:26:46 +1000
commit8ae173bb57819a23717fd3c8e7c51cb62f4268d0 (patch)
tree95050e0b9f24fff370a661f4038038baff7d6ed5 /crypto/include
parent0d345f0e10b14392925479fc61b6c9072a9605a3 (diff)
Convert asn1_dsa.c to use the PACKET API instead
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9111)
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/asn1_dsa.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/include/internal/asn1_dsa.h b/crypto/include/internal/asn1_dsa.h
index 7c720a1733..da01690df1 100644
--- a/crypto/include/internal/asn1_dsa.h
+++ b/crypto/include/internal/asn1_dsa.h
@@ -10,13 +10,14 @@
#ifndef HEADER_ASN1_DSA_H
# define HEADER_ASN1_DSA_H
+#include "internal/packet.h"
+
size_t encode_der_length(size_t cont_len, unsigned char **ppout, size_t len);
size_t encode_der_integer(const BIGNUM *n, unsigned char **ppout, size_t len);
size_t encode_der_dsa_sig(const BIGNUM *r, const BIGNUM *s,
unsigned char **ppout, size_t len);
-size_t decode_der_length(size_t *pcont_len, const unsigned char **ppin,
- size_t len);
-size_t decode_der_integer(BIGNUM *n, const unsigned char **ppin, size_t len);
+int decode_der_length(PACKET *pkt, PACKET *subpkt);
+int decode_der_integer(PACKET *pkt, BIGNUM *n);
size_t decode_der_dsa_sig(BIGNUM *r, BIGNUM *s, const unsigned char **ppin,
size_t len);