]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gcrypt.c
gcrypt: Rename E_OEAP to E_RSA_DECODE.
[paraslash.git] / gcrypt.c
index f4dbeb8e32c7aee89a5d1b6bd6444811616a0a8c..7d6b2cae611f4946b5671ece39d0000d39a8f7b2 100644 (file)
--- a/gcrypt.c
+++ b/gcrypt.c
@@ -601,10 +601,8 @@ static int decode_rsa(gcry_sexp_t sexp, unsigned char *outbuf, size_t *nbytes)
 {
        const char *p = gcry_sexp_nth_data(sexp, 1, nbytes);
 
-       if (!p) {
-               PARA_ERROR_LOG("could not get data from list\n");
-               return -E_OEAP;
-       }
+       if (!p)
+               return -E_RSA_DECODE;
        memcpy(outbuf, p, *nbytes);
        return 1;
 }