/// <summary> /// Calls BIO_puts() /// </summary> /// <param name="str"></param> public void Write(string str) { byte[] buf = Encoding.ASCII.GetBytes(str); if (Native.BIO_puts(this.ptr, buf) != buf.Length) { throw new OpenSslException(); } }