IntelliJ Java IDE
The moose likes Security and the fly likes capturing errors from openssl.exe called via system() (very urgent pl...) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "capturing errors from openssl.exe called via system() (very urgent pl...) " Watch "capturing errors from openssl.exe called via system() (very urgent pl...) " New topic
Author

capturing errors from openssl.exe called via system() (very urgent pl...)

Ravikumar Jambunathan
Ranch Hand

Joined: Aug 25, 2003
Posts: 66
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
 
 
subject: capturing errors from openssl.exe called via system() (very urgent pl...)
 
Threads others viewed
Call a javascript function from Java
password recovery
AES SecretKeySpec object varies in two instances with same passphrase.
Encrypted Password for Oracle JDBC
Crypting text with Java and salt
MyEclipse, The Clear Choice