X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fpdkim%2Fsigning.c;h=c1b9aed2a0349b52b496c39353e37a0316bfc9ae;hb=f9ba5e2255cf18092750fffacb6a9603571a2be5;hp=b61b428327292cf6bad504a44bdf824b26e2245f;hpb=260958d632506e2789fc632381f560f5a0c77ed7;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/pdkim/signing.c b/src/src/pdkim/signing.c index b61b42832..c1b9aed2a 100644 --- a/src/src/pdkim/signing.c +++ b/src/src/pdkim/signing.c @@ -1,7 +1,7 @@ /* * PDKIM - a RFC4871 (DKIM) implementation * - * Copyright (C) 2017 Exim maintainers + * Copyright (C) 1995 - 2018 Exim maintainers * * signing/verification interface */ @@ -401,7 +401,7 @@ Useful cmds: (not good for ed25519) */ - + if ( !(s1 = Ustrstr(CS privkey_pem, "-----BEGIN RSA PRIVATE KEY-----")) || !(s2 = Ustrstr(CS (s1+=31), "-----END RSA PRIVATE KEY-----" )) ) @@ -752,10 +752,10 @@ if( (ctx = EVP_MD_CTX_create()) /* Initialise the DigestSign operation */ && EVP_DigestSignInit(ctx, NULL, md, NULL, sign_ctx->key) > 0 - + /* Call update with the message */ && EVP_DigestSignUpdate(ctx, data->data, data->len) > 0 - + /* Finalise the DigestSign operation */ /* First call EVP_DigestSignFinal with a NULL sig parameter to obtain the length of the * signature. Length is returned in slen */