gcrypt: Initialize variables when en-/decrypting with RSA to avoid warnings
This commit is contained in:
@@ -281,8 +281,8 @@ METHOD(private_key_t, decrypt, bool,
|
|||||||
void *params, chunk_t encrypted, chunk_t *plain)
|
void *params, chunk_t encrypted, chunk_t *plain)
|
||||||
{
|
{
|
||||||
gcry_error_t err;
|
gcry_error_t err;
|
||||||
gcry_sexp_t in, out;
|
gcry_sexp_t in, out = NULL;
|
||||||
chunk_t label = chunk_empty, decrypted;
|
chunk_t label = chunk_empty, decrypted = chunk_empty;
|
||||||
u_char *sexp;
|
u_char *sexp;
|
||||||
|
|
||||||
switch (scheme)
|
switch (scheme)
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ METHOD(public_key_t, encrypt_, bool,
|
|||||||
void *params, chunk_t plain, chunk_t *encrypted)
|
void *params, chunk_t plain, chunk_t *encrypted)
|
||||||
{
|
{
|
||||||
gcry_error_t err;
|
gcry_error_t err;
|
||||||
gcry_sexp_t in, out;
|
gcry_sexp_t in, out = NULL;
|
||||||
chunk_t label = chunk_empty;
|
chunk_t label = chunk_empty;
|
||||||
u_char *sexp;
|
u_char *sexp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user