diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-06-05 17:37:04 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-06-05 17:37:04 +0000 |
commit | 511efe55dd36eb5908f8019f927a7c31dde3c880 (patch) | |
tree | 3756de3d43a754c6bef0e0534d1bd29ad1852a16 /lib/x509/verify.c | |
parent | 71ba82715d8c628b745e5806a7717b28c2736772 (diff) | |
download | gnutls-511efe55dd36eb5908f8019f927a7c31dde3c880.tar.gz |
Added the functions gnutls_x509_crt_get_pk_rsa_raw() and
gnutls_x509_crt_get_pk_dsa_raw() to retrieve parameters from certificates.
Diffstat (limited to 'lib/x509/verify.c')
-rw-r--r-- | lib/x509/verify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/x509/verify.c b/lib/x509/verify.c index 141f7200ed..f5d1a910d4 100644 --- a/lib/x509/verify.c +++ b/lib/x509/verify.c @@ -412,7 +412,7 @@ int len; */ static int _pkcs1_rsa_verify_sig( const gnutls_datum* text, const gnutls_datum* signature, - GNUTLS_MPI *params, int params_len) + mpi_t *params, int params_len) { gnutls_mac_algorithm hash; int ret; @@ -465,7 +465,7 @@ _pkcs1_rsa_verify_sig( const gnutls_datum* text, const gnutls_datum* signature, */ static int dsa_verify_sig( const gnutls_datum* text, const gnutls_datum* signature, - GNUTLS_MPI *params, int params_len) + mpi_t *params, int params_len) { int ret; opaque _digest[MAX_HASH_SIZE]; @@ -493,7 +493,7 @@ dsa_verify_sig( const gnutls_datum* text, const gnutls_datum* signature, * or 1 otherwise. */ static int verify_sig( const gnutls_datum* tbs, const gnutls_datum* signature, - gnutls_pk_algorithm pk, GNUTLS_MPI* issuer_params, int issuer_params_size) + gnutls_pk_algorithm pk, mpi_t* issuer_params, int issuer_params_size) { switch( pk ) @@ -532,7 +532,7 @@ static int verify_sig( const gnutls_datum* tbs, const gnutls_datum* signature, int _gnutls_x509_verify_signature( const gnutls_datum* tbs, const gnutls_datum* signature, gnutls_x509_crt issuer) { -GNUTLS_MPI issuer_params[MAX_PUBLIC_PARAMS_SIZE]; +mpi_t issuer_params[MAX_PUBLIC_PARAMS_SIZE]; int ret, issuer_params_size, i; /* Read the MPI parameters from the issuer's certificate. |