#include <stdio.h> #include <openssl/bio.h> #include <openssl/evp.h> int main(int argc, char *argv[]) { printf("Hello, world\n"); BIO *bio, *b64; char message[] = "Hello World \n"; b64 = BIO_new(BIO_f_base64()); bio = BIO_new_fp(stdout, BIO_NOCLOSE); //bio = BIO_new_mem_buf( bio = BIO_push(b64, bio); BIO_write(bio, message, strlen(message)); BIO_flush(bio); BIO_free_all(bio); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)