To all C Gurus,
I want to run this openssl command line inside C.
openssl aes-256-cbc -d -pass pass:"password" -a -salt -in system.aes -out system.txt
Therefore, I type in below source code.
Then error message came out, debugger point to line 08 because of ""password" " error.Code:01 #include <stdlib.h> 02 #include <stdio.h> 03 #include <string.h> 04 int main() 05 { 06 char child2[BUFSIZ]; 07 strcpy (child2, "openssl aes-256-cbc -d -pass pass:"); 08 strcat (child2, ""password" "); 09 strcat (child2, "-a -salt -in system.aes -out system.txt "); 10 printf ("Executing %s\n", child2); 11 system (child2); 12 return 0; 13 }
Please guide me how to solve this problem. I am new bird to C world. Thanks...