You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ssl.h 704B

12345678910111213141516171819
  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;
  16. int CreateSSLHello(SSL_t *ssl);
  17. int ReadSSLHello(SSL_t *ssl);
  18. void PrintSSLPacket(SSL_t *ssl);