Hey all,
Having some issues with C. I have this is my code:
// First line works, second line does not!
char outbuf[1024];
// char *outbuf = (char *) malloc(1024); // char is always 1
I am passing this outbuf to a method called PK11_CipherOp()
, declared in the NSS library. The Documentation for this method can be found here, you can see that it expects a char *
for the outbuf param.
I cannot understand why the first line works reliably, and the second line does not!
To see the full code, please see File Source
Thanks,
Hamilton