diff options
author | Matt Caswell <matt@openssl.org> | 2019-06-10 18:52:15 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-07-11 22:26:46 +0200 |
commit | b8805834756434bfc6ee3840e7097e6e1a877905 (patch) | |
tree | 8e0850d386e82479a6900ba864d4f5c13079356c /crypto/include/internal/asn1_dsa.h | |
parent | Give WPACKET the ability to have a NULL buffer underneath it (diff) | |
download | openssl-b8805834756434bfc6ee3840e7097e6e1a877905.tar.xz openssl-b8805834756434bfc6ee3840e7097e6e1a877905.zip |
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 '')
-rw-r--r-- | crypto/include/internal/asn1_dsa.h | 7 |
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, |