-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automate openssl offset header file generation
- Loading branch information
1 parent
8afd9c0
commit bf6f4d3
Showing
30 changed files
with
735 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ kern/bpf/x86/vmlinux.h | |
|
||
bin/* | ||
/.check* | ||
/deps/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_A_H | ||
#define ECAPTURE_OPENSSL_1_1_1_A_H | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_A_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_A_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1a 20 Nov 2018, OPENSSL_VERSION_NUMBER:269488159 */ | ||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1a 20 Nov 2018, OPENSSL_VERSION_NUMBER: 269488159 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x510 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x174 | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1b4 | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2b4 | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2f4 | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3b4 | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_B_C_H | ||
#define ECAPTURE_OPENSSL_1_1_1_B_C_H | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_B_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_B_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1b 26 Feb 2019, OPENSSL_VERSION_NUMBER:269488175 */ | ||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1b 26 Feb 2019, OPENSSL_VERSION_NUMBER: 269488175 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x508 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x174 | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1b4 | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2b4 | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2f4 | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3b4 | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_C_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_C_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1c 28 May 2019, OPENSSL_VERSION_NUMBER: 269488191 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x508 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x174 | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1b4 | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2b4 | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2f4 | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3b4 | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_D_I_H | ||
#define ECAPTURE_OPENSSL_1_1_1_D_I_H | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_D_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_D_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1d 10 Sep 2019, OPENSSL_VERSION_NUMBER:269488207 */ | ||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1d 10 Sep 2019, OPENSSL_VERSION_NUMBER: 269488207 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x510 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x17c | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1bc | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2bc | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2fc | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3bc | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_E_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_E_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1e 17 Mar 2020, OPENSSL_VERSION_NUMBER: 269488223 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x510 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x17c | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1bc | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2bc | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2fc | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3bc | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_F_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_F_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1f 31 Mar 2020, OPENSSL_VERSION_NUMBER: 269488239 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x510 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x17c | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1bc | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2bc | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2fc | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3bc | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_G_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_G_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1g 21 Apr 2020, OPENSSL_VERSION_NUMBER: 269488255 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x510 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x17c | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1bc | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2bc | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2fc | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3bc | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef ECAPTURE_OPENSSL_1_1_1_H_KERN_H | ||
#define ECAPTURE_OPENSSL_1_1_1_H_KERN_H | ||
|
||
/* OPENSSL_VERSION_TEXT: OpenSSL 1.1.1h 22 Sep 2020, OPENSSL_VERSION_NUMBER: 269488271 */ | ||
|
||
// ssl_st->version | ||
#define SSL_ST_VERSION 0x0 | ||
// ssl_st->session | ||
#define SSL_ST_SESSION 0x510 | ||
// ssl_st->s3 | ||
#define SSL_ST_S3 0xa8 | ||
// ssl_session_st->master_key | ||
#define SSL_SESSION_ST_MASTER_KEY 0x50 | ||
// ssl3_state_st->client_random | ||
#define SSL3_STATE_ST_CLIENT_RANDOM 0xb8 | ||
// ssl_session_st->cipher | ||
#define SSL_SESSION_ST_CIPHER 0x1f8 | ||
// ssl_session_st->cipher_id | ||
#define SSL_SESSION_ST_CIPHER_ID 0x200 | ||
// ssl_cipher_st->id | ||
#define SSL_CIPHER_ST_ID 0x18 | ||
// ssl_st->handshake_secret | ||
#define SSL_ST_HANDSHAKE_SECRET 0x17c | ||
// ssl_st->master_secret | ||
#define SSL_ST_MASTER_SECRET 0x1bc | ||
// ssl_st->server_finished_hash | ||
#define SSL_ST_SERVER_FINISHED_HASH 0x2bc | ||
// ssl_st->handshake_traffic_hash | ||
#define SSL_ST_HANDSHAKE_TRAFFIC_HASH 0x2fc | ||
// ssl_st->exporter_master_secret | ||
#define SSL_ST_EXPORTER_MASTER_SECRET 0x3bc | ||
|
||
#endif | ||
|
||
#include "openssl.h" | ||
#include "openssl_masterkey.h" |
Oops, something went wrong.