Hi Adriaan, Thanks a lot for your efforts!
> --- SNIP --- > #include <stdio.h> > #include <openssl/evp.h> > > int main() > { > OpenSSL_add_all_algorithms(); > > const EVP_CIPHER *ciph = EVP_get_cipherbyname ("BF-CBC"); > printf("%p\n", ciph); > > printf ("EVP_CIPH_CBC_MODE: %u\n", EVP_CIPH_CBC_MODE); > printf ("Function: %lu\n", EVP_CIPHER_mode (ciph)); > return 0; > } > > --- SNIP --- > > The commands would be: > > $ gcc <sourcefile.c> -lssl > $ ./a.out I added -lcrypto as well: % gcc -L/opt/local/lib -I/opt/local/include -lssl -lcrypt sourcefile.c % ./a.out 0x100e37d60 EVP_CIPH_CBC_MODE: 2 Function: 2 FYI, this is with Openssl 1.0.0f (installed with MacPorts, a package maanger for Mac OS X). The result with OpenSSL 0.9.8r (that came with Mac OS X) is: % gcc -L/usr/lib -I/usr/include -lssl -lcrypto sourcefile.c sourcefile.c: In function ‘main’: sourcefile.c:6: warning: ‘OPENSSL_add_all_algorithms_noconf’ is deprecated (declared at /usr/include/openssl/evp.h:828) sourcefile.c:8: warning: ‘EVP_get_cipherbyname’ is deprecated (declared at /usr/include/openssl/evp.h:848) sourcefile.c:12: warning: ‘EVP_CIPHER_flags’ is deprecated (declared at /usr/include/openssl/evp.h:496) % ./a.out 0x7fff75d9d000 EVP_CIPH_CBC_MODE: 2 Function: 2 > Unfortunately I don't have direct access to a mac If required, I may be able to get you access next weekend. Freek