On 04/13/2011 07:16 PM, luis hernandez wrote:
Hi
I do not know if you have talk about this here, but I can not find the
answer.
How to translate a command line commandt to a c++ code?
For instance if at commandd prompt i do this: openssl x509 -inform DER
-in cert.cer
There is no single openssl "main".
In this case, look into the source, the file is apps/x509.c
If you were issuing a command like openssl smime ..., then look into
apps/smime.c, etc.
The "core" code for each OpenSSL command is in the file that I have
indicated, common code to apps mostly does stuff like reading the
configuration file, initializing OpenSSL (read the FAQ), etc.
-noout -enddate
What code will generate the same result?
Is there howto already written?
I have bought the book Network security with Openssl by O'reilly. But
I can not figure it out.
TIA for your help.
Luis Hernandez