char buf[1024];
int rand_bytes_read;
SSL_library_init();
if(!bNotFirstTime) {
SSLeay_add_all_algorithms();
SSL_load_error_strings();