summaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-06-10 17:52:15 +0100
committerPauli <paul.dale@oracle.com>2019-07-12 06:26:46 +1000
commitb8805834756434bfc6ee3840e7097e6e1a877905 (patch)
tree8e0850d386e82479a6900ba864d4f5c13079356c /crypto/include
parent15cb0f095878092a625219f58bd915bdf1acc973 (diff)
Convert asn1_dsa.c to use the WPACKET 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, 3 insertions, 4 deletions
diff --git a/crypto/include/internal/asn1_dsa.h b/crypto/include/internal/asn1_dsa.h
index da01690df1..d2570516a1 100644
--- a/crypto/include/internal/asn1_dsa.h
+++ b/crypto/include/internal/asn1_dsa.h
@@ -12,10 +12,9 @@
#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);
+int encode_der_length(WPACKET *pkt, size_t cont_len);
+int encode_der_integer(WPACKET *pkt, const BIGNUM *n);
+int encode_der_dsa_sig(WPACKET *pkt, const BIGNUM *r, const BIGNUM *s);
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,