[openssl-dev] Errors when loading an OpenSSL RSA Engine

danigrosu dni.grosu at gmail.com
Wed Mar 9 17:57:35 UTC 2016


In git version, if I comment the block

/ if (id && strcmp(id, engine_id)) {
    fprintf(stderr, "MD5 engine called with the unexpected id %s\n", id);
    fprintf(stderr, "The expected id is %s\n", engine_id);
    goto end;
  }/

... then I type

/$ gcc -fPIC -o rfc1321/md5c.o -c rfc1321/md5c.c 
$ gcc -fPIC -o md5-engine.o -c e_md5.c 
$ gcc -shared -o md5-engine.so -lcrypto md5-engine.o rfc1321/md5c.o

$ echo whatever | openssl dgst -engine `pwd`/md5-engine.so -md5
engine "emd5" set.
(stdin)= d8d77109f4a24efc3bd53d7cabb7ee35/

... everithing goes well

Dani Grosu



--
View this message in context: http://openssl.6102.n7.nabble.com/Errors-when-loading-an-OpenSSL-RSA-Engine-tp64385p64501.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.


More information about the openssl-dev mailing list