|
@@ -1778,10 +1778,11 @@ unsigned char *base64decode(const void *b64_decode_this, int decode_this_many_by
|
|
|
int decoded_byte_index = 0; // Index where the next base64_decoded byte should be written.
|
|
|
while (0 < BIO_read(b64_bio, base64_decoded + decoded_byte_index, 1)) { // Read byte-by-byte.
|
|
|
decoded_byte_index++; // Increment the index until read of BIO decoded data is complete.
|
|
|
- } // Once we're done reading decoded data, BIO_read returns -1 even though there's no error.
|
|
|
- BIO_free_all(b64_bio); // Destroys all BIOs in chain, starting with b64 (i.e. the 1st one).
|
|
|
- return base64_decoded; // Returns base-64 decoded data with trailing null terminator.
|
|
|
+ } // Once we're done reading decoded data, BIO_read returns -1 even though there's no error.
|
|
|
+ BIO_free_all(b64_bio); // Destroys all BIOs in chain, starting with b64 (i.e. the 1st one).
|
|
|
+ return base64_decoded; // Returns base-64 decoded data with trailing null terminator.
|
|
|
}
|
|
|
+
|
|
|
int decodedTextSize(char *input) {
|
|
|
int i = 0;
|
|
|
int result = 0, padding = 0;
|
|
@@ -1794,8 +1795,8 @@ int decodedTextSize(char *input) {
|
|
|
result = (strlen(input) / 4 * 3) - padding;
|
|
|
return result;
|
|
|
}
|
|
|
-void decrypt_aes_128(char *in, const unsigned char *mykey) {
|
|
|
|
|
|
+void decrypt_aes_128(char *in, const unsigned char *mykey) {
|
|
|
unsigned char iv[8] = {0};
|
|
|
AES_KEY key;
|
|
|
unsigned char outdata[256];
|