summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-01-31 12:48:20 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-01-31 12:48:20 +0000
commit0a048d3c44bb23f6856587779c5ae0435d54f388 (patch)
tree9e904bf571818a7f1fe3b38c3cd794aff24c2ace /src/common.h
parent8d944005c46e919679b33a1da6b931ad7a7bbc70 (diff)
downloadgnutls-0a048d3c44bb23f6856587779c5ae0435d54f388.tar.gz
Renamed gnutls_x509pki_extract_* to gnutls_x509_extract_*.
Separated gnutls_x509_extract_* functions. Now are in gnutls_x509.c.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common.h b/src/common.h
index 51cf3f7d73..ebed84572c 100644
--- a/src/common.h
+++ b/src/common.h
@@ -44,7 +44,7 @@ GNUTLS_KXAlgorithm kx;
/* in case of X509 PKI
*/
cert_list = gnutls_certificate_get_peers( state, &cert_list_size);
- status = gnutls_x509pki_get_peer_certificate_status( state);
+ status = gnutls_x509pki_verify_peers( state);
switch( status) {
case GNUTLS_CERT_NOT_TRUSTED:
@@ -94,7 +94,7 @@ GNUTLS_KXAlgorithm kx;
/* Print the serial number of the certificate.
*/
- if ( gnutls_x509pki_extract_certificate_serial( &cert_list[0], serial, &serial_size) >= 0) {
+ if ( gnutls_x509_extract_certificate_serial( &cert_list[0], serial, &serial_size) >= 0) {
print = printable;
for (i=0;i<serial_size;i++) {
sprintf( print, "%.2x ", (unsigned char)serial[i]);
@@ -106,12 +106,12 @@ GNUTLS_KXAlgorithm kx;
/* Print the version of the X.509
* certificate.
*/
- printf(" - Certificate version: #%d\n", gnutls_x509pki_extract_certificate_version( &cert_list[0]));
+ printf(" - Certificate version: #%d\n", gnutls_x509_extract_certificate_version( &cert_list[0]));
- gnutls_x509pki_extract_certificate_dn( &cert_list[0], &dn);
+ gnutls_x509_extract_certificate_dn( &cert_list[0], &dn);
PRINT_DN( dn);
- gnutls_x509pki_extract_certificate_issuer_dn( &cert_list[0], &dn);
+ gnutls_x509_extract_certificate_issuer_dn( &cert_list[0], &dn);
printf(" - Certificate Issuer's info:\n");
PRINT_DN( dn);
}