X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mcs.c;fp=mcs.c;h=e771a074a7dd65ce2bd1de0f15e0e228673fe0db;hb=a521f01158c829ca8f5ce87f81b85f9aa50db4dd;hp=6e13770f5f74adc9145bedca2445519258a26527;hpb=ad9d9c18b879147f8cb7756c2372398eec918707;p=rdpsrv diff --git a/mcs.c b/mcs.c index 6e13770..e771a07 100644 --- a/mcs.c +++ b/mcs.c @@ -395,10 +395,12 @@ mcs_send_connect_response() // this is a good time to load our private key :-) { unsigned char *buf = (unsigned char *)malloc(1024); - unsigned char *ptr = buf; + const unsigned char *ptr = buf; memcpy(buf, private_key, sizeof(private_key)); privkey = d2i_RSAPrivateKey(NULL, &ptr, sizeof(private_key)); free(buf); + + printf("Loaded private key (%u bytes)\n", sizeof(private_key)); } }