摘要:
代码: #include <openssl/bio.h> #include <openssl/ssl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <netdb.h 阅读全文
摘要:
初始化: struct tls_connection * tls_connection_init(void *ssl_ctx) { struct tls_data *data = ssl_ctx; SSL_CTX *ssl = data->ssl; struct tls_connection *co 阅读全文
摘要:
SSL_read函数定义 SSL_read(3SSL) OpenSSL SSL_read(3SSL) NAME SSL_read - read bytes from a TLS/SSL connection. SYNOPSIS #include <openssl/ssl.h> int SSL_rea 阅读全文
摘要:
建立tls后copy数据到clean_in 然后写入到ssl加密,从from_ssl 读取加密后的数据然后发送 /* * Take cleartext user data, and encrypt it into the output buffer, * to send to the client 阅读全文
摘要:
tls session typedef struct _tls_session_t { SSL_CTX *ctx; SSL *ssl; #if OPENSSL_VERSION_NUMBER >= 0x10001000L SSL_SESSION *session; #endif tls_info_t 阅读全文
摘要:
转载涉及的源码 statem.c : openssl/ssl/statem/statem.c statem.h : openssl/ssl/statem/statem.h ssl.h : openssl/nclude/openssl/ssl.h statem_lib.c : openssl/ssl/ 阅读全文
摘要:
目前准备自己使用基于udp的ssl流传输数据。研究了一下ssl;测试了一下demo。 ssl_ctx = SSL_CTX_new(SSLv23_client_method()); // #define SSLv23_client_method TLS_client_method //////ssl_ 阅读全文
摘要:
https://stackoverflow.com/questions/51672133/what-are-openssl-bios-how-do-they-work-how-are-bios-used-in-openssl What is OpenSSL BIO? OpenSSL BIO is a 阅读全文
摘要:
tcp_sock结构: 1、 urg_data成员,其高8bit为urgent data的接收状态;其低8位为保存的1BYTE urgent数据。urgent data的接收状态对应的宏的含义描述: #defineTCP_URG_VALID 0x0100/*urgent data已经读到了tcp_s 阅读全文
摘要:
keep sk->sk_forward_alloc as small as possible patch。!!! 预分配缓存额度sk_forward_alloc与发送缓存队列统计sk_wmem_queued一同用于计算当前套接口所占用的内存量。sk_forward_alloc属于为套接口预分配,所以 阅读全文