Error while printing values of EVP_PKEY_CTX structure

354 views Asked by At

In the tester side, I'm trying to print the value of structure evp_pkey_ctx_st but I'm getting error dereferencing pointer to incomplete type EVP_PKEY_CTX.

printf("\nOpearation:%d",ctx->operation);

Can anyone please guide me. Is this a feasible approach? can we print structure values in the engine or tester side?

1

There are 1 answers

4
David Schwartz On BEST ANSWER

The EVP_PKEY_CTX structure is opaque. There are functions you can call to process it, but only code that is part of the implementation itself is supposed to understand the structure. The arrangement of the structure is an implementation detail and not exposed outside the OpenSSL code.

It's not clear exactly what you're trying to do. Are you implementing an OpenSSL engine? Can you show us enough code to replicate the error you're getting along with enough context to understand how to build the code?