hi all,
first of all i apologize if it is posted in a worng forum.
i building a project in C for file encryption/ decryption using openssl binary as an external utility, which will be called for encryption thru system() from the application.(OS:Win)
Everything goes fine if the password matches whicle decrypting the encrypted file. Unfortunately, if the password does not match during decryption, the openssl returns "bad decrypt" and the decryption process continues.
I would like to capture the error and manipulate it. But,
I do not know how to capture the bad decrypt error returned from openssl.
Could anybody help me with your suggesstions.
thanks in advance.
regards,
ravi