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)
{
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. */