Merge branch 'master' of /pub/scm/gpxe
[gpxe.git] / src / crypto / ssl.h
blob06d4300864dea9f1925e82007cc8bc668f5cb291
1 // At the moment I have hard coded one buffer. The size
2 // is the max size of SSLCiphertext.length (so, actually it should
3 // be increased to include the other information in the struct)
4 // I might need to make a new, or split the current, buffer because
5 // I have to have space to read in and write out, as well as keep
6 // any data that has not been translated.
7 // It works for now.
8 typedef struct _ssl_t{
9 char buffer[18456];
10 int length;
11 int max_size; // can't define const here
12 // Current CipherSuite
13 // Client random / Server random ???
14 // pointers to different crypto functions
15 } SSL_t;
17 int CreateSSLHello(SSL_t *ssl);
18 int ReadSSLHello(SSL_t *ssl);
19 void PrintSSLPacket(SSL_t *ssl);