mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
The first packet (ClientHello Handshake) can be constructed and is accepted
by SSL servers. Framework.c allows me to test the library against a given https server.
This commit is contained in:
19
src/crypto/ssl.h
Normal file
19
src/crypto/ssl.h
Normal file
@@ -0,0 +1,19 @@
|
||||
// At the moment I have hard coded one buffer. The size
|
||||
// is the max size of SSLCiphertext.length (so, actually it should
|
||||
// be increased to include the other information in the struct)
|
||||
// I might need to make a new, or split the current, buffer because
|
||||
// I have to have space to read in and write out, as well as keep
|
||||
// any data that has not been translated.
|
||||
// It works for now.
|
||||
typedef struct _ssl_t{
|
||||
char buffer[18456];
|
||||
int length;
|
||||
int max_size; // can't define const here
|
||||
// Current CipherSuite
|
||||
// Client random / Server random ???
|
||||
// pointers to different crypto functions
|
||||
} SSL_t;
|
||||
|
||||
int CreateSSLHello(SSL_t *ssl);
|
||||
int ReadSSLHello(SSL_t *ssl);
|
||||
void PrintSSLPacket(SSL_t *ssl);
|
||||
Reference in New Issue
Block a user