return FALSE;\r
}\r
\r
- Status = FALSE;\r
- PemBio = NULL;\r
-\r
//\r
// Add possible block-cipher descriptor for PEM data decryption.\r
// NOTE: Only support most popular ciphers (3DES, AES) for the encrypted PEM.\r
//\r
- EVP_add_cipher (EVP_des_ede3_cbc ());\r
- EVP_add_cipher (EVP_aes_128_cbc ());\r
- EVP_add_cipher (EVP_aes_192_cbc ());\r
- EVP_add_cipher (EVP_aes_256_cbc ());\r
+ if (EVP_add_cipher (EVP_des_ede3_cbc ()) == 0) {\r
+ return FALSE;\r
+ }\r
+ if (EVP_add_cipher (EVP_aes_128_cbc ()) == 0) {\r
+ return FALSE;\r
+ }\r
+ if (EVP_add_cipher (EVP_aes_192_cbc ()) == 0) {\r
+ return FALSE;\r
+ }\r
+ if (EVP_add_cipher (EVP_aes_256_cbc ()) == 0) {\r
+ return FALSE;\r
+ }\r
+\r
+ Status = FALSE;\r
\r
//\r
// Read encrypted PEM Data.\r