summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-31 11:45:19 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-31 11:45:19 +0200
commit5440504c39326d35fa02bb61f1f6248dc115ee2f (patch)
tree5a6e429b05b55719c6407f833eb819b02a3bfce3
parent9710320f8e5a84b3f97efb5fbb24903e00e5fe13 (diff)
downloadgnutls-5440504c39326d35fa02bb61f1f6248dc115ee2f.tar.gz
removed cdk_armor_filter_use()
-rw-r--r--lib/opencdk/armor.c29
-rw-r--r--lib/opencdk/opencdk.h2
2 files changed, 0 insertions, 31 deletions
diff --git a/lib/opencdk/armor.c b/lib/opencdk/armor.c
index 19b8d4bdd3..8169980334 100644
--- a/lib/opencdk/armor.c
+++ b/lib/opencdk/armor.c
@@ -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)
{
diff --git a/lib/opencdk/opencdk.h b/lib/opencdk/opencdk.h
index 85531bb7f4..335f9a7443 100644
--- a/lib/opencdk/opencdk.h
+++ b/lib/opencdk/opencdk.h
@@ -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. */