BIO_C_GET_BUF_MEM_PTR
#define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
case BIO_C_GET_BUF_MEM_PTR: