PKCS12err(PKCS12_F_VERIFY_MAC,PKCS12_R_MAC_ABSENT);
PKCS12err(PKCS12_F_PKCS12_VERIFY_MAC,PKCS12_R_MAC_ABSENT);
int PKCS12_verify_mac (PKCS12 *p12, const char *pass, int passlen){	unsigned char mac[EVP_MAX_MD_SIZE];	unsigned int maclen;	if(p12->mac == NULL) {		PKCS12err(PKCS12_F_VERIFY_MAC,PKCS12_R_MAC_ABSENT);		return 0;	}	if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) {		PKCS12err(PKCS12_F_VERIFY_MAC,PKCS12_R_MAC_GENERATION_ERROR);		return 0;	}	if ((maclen != (unsigned int)p12->mac->dinfo->digest->length)	|| memcmp (mac, p12->mac->dinfo->digest->data, maclen)) return 0;	return 1;}