<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
While implementing an engine, I run into the following prototype
that I need to implement:<br>
<br>
<tt>struct evp_pkey_asn1_method_st</tt><tt><br>
</tt><tt>{</tt><tt><br>
</tt><tt> <snip></tt><tt><br>
</tt><tt> int (*pub_encode)(X509_PUBKEY *pub, <b>const</b>
EVP_PKEY *pk);</tt><tt><br>
</tt><tt> <snip></tt><tt><br>
</tt><tt>} /* EVP_PKEY_ASN1_METHOD */;</tt><br>
<br>
Inside this function, I want to assign pk to pub->pkey (and do
the necessary up and down reffing of the EVP_PKEYs involved). But
that is not allowed, because of the const qualifier on pk.<br>
<br>
For now, I have just worked around the compiler complaints by
casting to a non-const, but I wonder whether this will bite me at
some point?<br>
<br>
Thanks,<br>
Reinier<br>
</body>
</html>