mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-27 15:43:42 +08:00
Update tls13_server.c
This commit is contained in:
@@ -841,7 +841,7 @@ endif()
|
|||||||
#
|
#
|
||||||
set(CPACK_PACKAGE_NAME "GmSSL")
|
set(CPACK_PACKAGE_NAME "GmSSL")
|
||||||
set(CPACK_PACKAGE_VENDOR "GmSSL develop team")
|
set(CPACK_PACKAGE_VENDOR "GmSSL develop team")
|
||||||
set(CPACK_PACKAGE_VERSION "3.2.0-dev.1121")
|
set(CPACK_PACKAGE_VERSION "3.2.0-dev.1122")
|
||||||
set(CPACK_PACKAGE_DESCRIPTION_FILE ${PROJECT_SOURCE_DIR}/README.md)
|
set(CPACK_PACKAGE_DESCRIPTION_FILE ${PROJECT_SOURCE_DIR}/README.md)
|
||||||
set(CPACK_NSIS_MODIFY_PATH ON)
|
set(CPACK_NSIS_MODIFY_PATH ON)
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
#define GMSSL_VERSION_NUM 30200
|
#define GMSSL_VERSION_NUM 30200
|
||||||
#define GMSSL_VERSION_STR "GmSSL 3.2.0-dev.1121"
|
#define GMSSL_VERSION_STR "GmSSL 3.2.0-dev.1122"
|
||||||
|
|
||||||
int gmssl_version_num(void);
|
int gmssl_version_num(void);
|
||||||
const char *gmssl_version_str(void);
|
const char *gmssl_version_str(void);
|
||||||
|
|||||||
@@ -617,10 +617,6 @@ bad:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (send_len > 0 && FD_ISSET(conn.sock, &fds_send)) {
|
if (send_len > 0 && FD_ISSET(conn.sock, &fds_send)) {
|
||||||
fprintf(stderr, ">>>>>>>> send back\n");
|
|
||||||
|
|
||||||
format_bytes(stderr, 0, 0, "tls13_send", (const uint8_t *)buf + send_offset, send_len);
|
|
||||||
|
|
||||||
if ((ret = tls_send(&conn, (uint8_t *)buf + send_offset, send_len, &sentlen)) != 1) {
|
if ((ret = tls_send(&conn, (uint8_t *)buf + send_offset, send_len, &sentlen)) != 1) {
|
||||||
if (ret == TLS_ERROR_SEND_AGAIN || ret == TLS_ERROR_RECV_AGAIN) {
|
if (ret == TLS_ERROR_SEND_AGAIN || ret == TLS_ERROR_RECV_AGAIN) {
|
||||||
continue;
|
continue;
|
||||||
@@ -632,8 +628,6 @@ bad:
|
|||||||
send_offset += sentlen;
|
send_offset += sentlen;
|
||||||
send_len -= sentlen;
|
send_len -= sentlen;
|
||||||
|
|
||||||
fprintf(stderr, "---------------\n");
|
|
||||||
|
|
||||||
//memset(conn.record, 0, sizeof(conn.record));
|
//memset(conn.record, 0, sizeof(conn.record));
|
||||||
//memset(conn.plain_record, 0, sizeof(conn.plain_record));
|
//memset(conn.plain_record, 0, sizeof(conn.plain_record));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user