summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-06-21 18:40:22 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-06-21 18:40:22 +0000
commitefdf799e93b0186c652a05e8832114540e30674a (patch)
treec6913b7fc1f0878cb8ffc1f5d29ddb9a17bc5b21 /src
parentb8851f3a04ea5e99b37ba17b507c7b1bdb5a7347 (diff)
downloadgnutls-efdf799e93b0186c652a05e8832114540e30674a.tar.gz
added missing files
Diffstat (limited to 'src')
-rw-r--r--src/pk.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/pk.h b/src/pk.h
new file mode 100644
index 0000000000..961574707a
--- /dev/null
+++ b/src/pk.h
@@ -0,0 +1,28 @@
+#define PKIX "pkix.asn"
+#define PKCS "pkcs1.asn"
+void PARSE()
+{
+ /* this is to be moved to gnutls */
+ int result = parser_asn1(PKIX);
+
+ signal( SIGPIPE, SIG_IGN);
+
+ if (result == ASN_SYNTAX_ERROR) {
+ printf("%s: PARSE ERROR\n", PKIX);
+ return;
+ } else if (result == ASN_IDENTIFIER_NOT_FOUND) {
+ printf("%s: IDENTIFIER NOT FOUND\n", PKIX);
+ return;
+ }
+
+ result = parser_asn1(PKCS);
+
+ if (result == ASN_SYNTAX_ERROR) {
+ printf("%s: PARSE ERROR\n", PKCS);
+ return;
+ } else if (result == ASN_IDENTIFIER_NOT_FOUND) {
+ printf("%s: IDENTIFIER NOT FOUND\n", PKCS);
+ return;
+ }
+
+}