openssl – BIO相关函数

  • Post author:
  • Post category:其他



  • int    BIO_read(BIO *b, void *buf, int len);

BIO_read() attempts to read

len

bytes from BIO

b

and places the data in

buf

.

BIO_read() read encrypted data from the output BIO.


  • int    BIO_write(BIO *b, void *buf, int len);

BIO_write() attempts to write

len

bytes from

buf

to BIO

b

.

BIO_write() write encrypted data into the input BIO.


https://www.openssl.org/docs/man1.0.2/man3/BIO_write.html


  • int SSL_read(SSL *ssl, void *buf, int num);

SSL_read() try to read

num

bytes from the specified

ssl

into the buffer

buf

.

SSL_read() read unencrypted data which is stored in the input BIO.


https://www.openssl.org/docs/man1.1.1/man3/SSL_read.html


  • int SSL_write(SSL *ssl, void *buf, int num);

SSL_write() write

num

bytes from the buffer

buf

into the specified

ssl

connection.

SSL_write() write unencrypted data into the output BIO.


https://www.openssl.org/docs/man1.1.1/man3/SSL_write.html



版权声明:本文为danielzhou1025原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。