Branch: Tag:

2015-09-01

2015-09-01 16:21:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.https: Support setting the PORT via -D.

Feature backported from Pike 8.0.

7:      //! Dummy HTTPS server    + #ifndef PORT   #define PORT 25678 -  + #endif      #if constant(SSL.Cipher.CipherAlgorithm)   
117: Inside #if constant(SSL.Cipher.CipherAlgorithm)
  int main()   {   #ifdef SSL3_DEBUG -  werror("Cert: '%s'\n", Crypto.string_to_hex(my_certificate)); -  werror("Key: '%s'\n", Crypto.string_to_hex(my_key)); +  werror("Cert: '%s'\n", String.string2hex(my_certificate)); +  werror("Key: '%s'\n", String.string2hex(my_key));   // werror("Decoded cert: %O\n", SSL.asn1.ber_decode(my_certificate)->get_asn1());   #endif   #if 0