pike.git / lib / modules / SSL.pmod / https.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/https.pike:1:   #pike __REAL_VERSION__      /* $Id$    *    * dummy https server    */      //! Dummy HTTPS server    + #ifndef PORT   #define PORT 25678 -  + #endif      #if constant(SSL.Cipher.CipherAlgorithm)      import Stdio;      inherit SSL.sslport;      string my_certificate = MIME.decode_base64(    "MIIBxDCCAW4CAQAwDQYJKoZIhvcNAQEEBQAwbTELMAkGA1UEBhMCREUxEzARBgNV\n"    "BAgTClRodWVyaW5nZW4xEDAOBgNVBAcTB0lsbWVuYXUxEzARBgNVBAoTClRVIEls\n"
pike.git/lib/modules/SSL.pmod/https.pike:110: Inside #if constant(SSL.Cipher.CipherAlgorithm)
     void my_accept_callback(object f)   {    werror("Accept!\n");    conn(accept());   }      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    array key = SSL.asn1.ber_decode(my_key)->get_asn1()[1];   #ifdef SSL3_DEBUG    werror("Decoded key: %O\n", key);   #endif    object n = key[1][1];    object e = key[2][1];    object d = key[3][1];