From: Simon Josefsson Date: Tue, 13 Feb 2007 09:52:16 +0000 (+0000) Subject: Remove unused. X-Git-Tag: gnutls_1_7_7~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84f468b77fc35dfba641ae67dfa0a4c3e5d8b006;p=thirdparty%2Fgnutls.git Remove unused. --- diff --git a/src/certtool.c b/src/certtool.c index 29259e6c85..4e94824b69 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -23,8 +23,6 @@ #include #include -#ifdef ENABLE_PKI - #include #include #include @@ -1053,25 +1051,6 @@ gaa_parser (int argc, char **argv) fclose (outfile); } - -/* OIDs that are handled by the gnutls' functions. - */ -static inline int -known_oid (const char *oid) -{ - if (strcmp (oid, "2.5.29.17") == 0 || - strcmp (oid, "2.5.29.19") == 0 || - strcmp (oid, "2.5.29.31") == 0 || - strcmp (oid, "2.5.29.37") == 0 || - strcmp (oid, "2.5.29.14") == 0 || - strcmp (oid, "2.5.29.35") == 0 || - strcmp (oid, "2.5.29.15") == 0 || - strcmp (oid, "1.3.6.1.5.5.7.1.14") == 0) - return 1; - - return 0; -} - #define MAX_CRTS 500 void certificate_info (void) @@ -2792,19 +2771,6 @@ smime_to_pkcs7 (void) free (lineptr); } -#else /* ENABLE_PKI */ - -#include - -int -main (int argc, char **argv) -{ - printf ("\nX.509 PKI not supported. This program is a dummy.\n\n"); - return 1; -}; - -#endif - void certtool_version (void) {