summaryrefslogtreecommitdiffstats
path: root/common/certinfo.h
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-04 15:24:05 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-04 15:24:05 +0200
commitdea39103b369f0903be326c505d36a9d489a0c1e (patch)
tree97a114b3fe7667c07678abdf528530efae8bfea8 /common/certinfo.h
parent856ecfcec0956d3269f2b119836ec31908d02836 (diff)
downloadeurephia-dea39103b369f0903be326c505d36a9d489a0c1e.tar.gz
eurephia-dea39103b369f0903be326c505d36a9d489a0c1e.tar.xz
eurephia-dea39103b369f0903be326c505d36a9d489a0c1e.zip
More comments in common/
Diffstat (limited to 'common/certinfo.h')
-rw-r--r--common/certinfo.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/common/certinfo.h b/common/certinfo.h
index 4f097b8..b180f77 100644
--- a/common/certinfo.h
+++ b/common/certinfo.h
@@ -19,14 +19,26 @@
*
*/
+/**
+ * @file certinfo.h
+ * @author David Sommerseth <dazo@users.sourceforge.net>
+ * @date 2008-08-06
+ *
+ * @brief Functions for parsing X.509 subject information
+ *
+ */
+
#ifndef __CERTINFO_H_
#define __CERTINFO_H_
+/**
+ * This structure contains certificate information in a structured way.
+ */
typedef struct _certinfo {
- char *digest;
- char *org;
- char *common_name;
- char *email;
+ char *digest; /**< Contains the SHA1 fingerprint (digest) of the certificate */
+ char *org; /**< Contains the O (organisation) field from the X.509 certificate */
+ char *common_name; /**< Contains the CN (Common Name) field from the X.509 certificate*/
+ char *email; /**< Contains the emailAddress field from the X.509 certificate */
} certinfo;
certinfo *parse_tlsid(const char *);