X509_PUBKEY_eq
if (X509_PUBKEY_eq(pubkey, sig->poposkInput->publicKey) != 1) {
int X509_PUBKEY_eq(const X509_PUBKEY *a, const X509_PUBKEY *b);