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

version» Context lines:

pike.git/lib/modules/SSL.pmod/https.pike:151:   void my_accept_callback(object f)   {    werror("Accept!\n");    conn(f->accept());   }      int main()   {    werror(sprintf("Cert: '%s'\n", Crypto.string_to_hex(my_certificate)));    werror(sprintf("Key: '%s'\n", Crypto.string_to_hex(my_key))); - // werror(sprintf("Decoded cert: %O\n", ber_decode(my_certificate)->get_asn1())); -  array key = asn1.ber_decode(my_key)->get_asn1()[1]; + // werror(sprintf("Decoded cert: %O\n", SSL.asn1.ber_decode(my_certificate)->get_asn1())); +  array key = SSL.asn1.ber_decode(my_key)->get_asn1()[1];    werror(sprintf("Decoded key: %O\n", key));    object n = key[1][1];    object e = key[2][1];    object d = key[3][1];    object p = key[4][1];    object q = key[5][1];       werror(sprintf("n = %s\np = %s\nq = %s\npq = %s\n",    n->digits(), p->digits(), q->digits(), (p*q)->digits()));    rsa = Crypto.rsa();
pike.git/lib/modules/SSL.pmod/https.pike:176:    random = no_random()->read;    werror("Starting\n");    if (!bind(PORT, my_accept_callback))    {    perror("");    return 17;    }    else    return -17;   } +  + void create() + { +  werror("https->create\n"); +  sslport::create(); + }