summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-04 22:35:09 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-04 22:35:09 +0000
commit900f1185eb11d21a464970d387775e34a13ad5c9 (patch)
tree30828266a040d183a765de5f161c1afc88cc000e /src
parent549da7d6bdfb634ea8280f32e61dfbbfbd767669 (diff)
downloadgnutls-900f1185eb11d21a464970d387775e34a13ad5c9.tar.gz
Changes for gnutls_openpgp_name structure
Diffstat (limited to 'src')
-rw-r--r--src/common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common.c b/src/common.c
index 6a68cb93f6..08a1a37400 100644
--- a/src/common.c
+++ b/src/common.c
@@ -9,6 +9,8 @@
PRINTX( "S:", X.state_or_province_name); \
PRINTX( "C:", X.country); \
PRINTX( "E:", X.email)
+#define PRINT_PGP_NAME(X) PRINTX( "NAME:", X.name); \
+ PRINTX( "EMAIL:", X.email)
void print_x509_info(GNUTLS_STATE state)
{
@@ -74,7 +76,7 @@ void print_x509_info(GNUTLS_STATE state)
void print_openpgp_info(GNUTLS_STATE state)
{
- gnutls_x509_dn dn;
+ gnutls_openpgp_name pgp_name;
char digest[20];
int digest_size = sizeof(digest), i;
char printable[120];
@@ -99,8 +101,8 @@ void print_openpgp_info(GNUTLS_STATE state)
printable);
gnutls_openpgp_extract_certificate_dn(&cert_list
- [0], &dn);
- PRINT_DN(dn);
+ [0], &pgp_name);
+ PRINT_PGP_NAME(pgp_name);
}