diff --git a/libpcp/crypto.c b/libpcp/crypto.c index d28aa69..65a43ea 100644 --- a/libpcp/crypto.c +++ b/libpcp/crypto.c @@ -22,7 +22,7 @@ #include "crypto.h" - +extern int debug; /* asym encr */ @@ -200,6 +200,10 @@ size_t pcp_decrypt_stream(PCPCTX *ptx, Pcpstream *in, Pcpstream* out, pcp_key_t } lenrec = be32toh(lenrec); + if (debug) { + fprintf(stderr, "DEBUG: input is encrypted for %ld recipients\n", (long int)lenrec); + } + if(verify) { reccipher = ucmalloc(lenrec * PCP_ASYM_RECIPIENT_SIZE); }