• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic