]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
removed cdk_armor_filter_use()
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 31 Dec 2011 09:45:19 +0000 (11:45 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 31 Dec 2011 09:45:19 +0000 (11:45 +0200)
lib/opencdk/armor.c
lib/opencdk/opencdk.h

index 19b8d4bdd399886aa29da7749c3374f09fe0eb9c..8169980334d3ce2539b9b1325aaf0e5b96eacd14 100644 (file)
@@ -426,35 +426,6 @@ armor_encode (void *data, FILE * in, FILE * out)
   return 0;
 }
 
-
-/**
- * cdk_armor_filter_use:
- * @inp: the stream to check
- *
- * Check if the stream contains armored data.
- **/
-int
-cdk_armor_filter_use (cdk_stream_t inp)
-{
-  int c, check;
-  int zipalgo;
-
-  zipalgo = 0;
-  c = cdk_stream_getc (inp);
-  if (c == EOF)
-    return 0;                   /* EOF, doesn't matter whether armored or not */
-  cdk_stream_seek (inp, 0);
-  check = is_armored (c);
-  if (check)
-    {
-      check = check_armor (inp, &zipalgo);
-      if (zipalgo)
-        _cdk_stream_set_compress_algo (inp, zipalgo);
-    }
-  return check;
-}
-
-
 static int
 search_header (const char *buf, const char **array)
 {
index 85531bb7f4bed6f20f0c51b73b19a5e6b8820b96..335f9a74436bfb21b6ceaecccaba46f8ee393785 100644 (file)
@@ -699,8 +699,6 @@ extern "C"
                            const unsigned char *salt);
   void cdk_s2k_free (cdk_s2k_t s2k);
 
-  int cdk_armor_filter_use (cdk_stream_t inp);
-
 /* Protect the inbuf with ASCII armor of the specified type.
    If @outbuf and @outlen are NULL, the function returns the calculated
    size of the base64 encoded data in @nwritten. */