PKCS12err(PKCS12_F_PKCS12_PKCS12_SET_MAC,PKCS12_R_MAC_STRING_SET_ERROR);
PKCS12err(PKCS12_F_PKCS12_SET_MAC,PKCS12_R_MAC_STRING_SET_ERROR);
int PKCS12_set_mac (PKCS12 *p12, const char *pass, int passlen,	     unsigned char *salt, int saltlen, int iter, EVP_MD *md_type){	unsigned char mac[EVP_MAX_MD_SIZE];	unsigned int maclen;	if (!md_type) md_type = EVP_sha1();	if (PKCS12_setup_mac (p12, iter, salt, saltlen, md_type) ==				 	PKCS12_ERROR) {		PKCS12err(PKCS12_F_PKCS12_SET_MAC, PKCS12_R_MAC_SETUP_ERROR);		return 0;	}	if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) {		PKCS12err(PKCS12_F_PKCS12_SET_MAC, PKCS12_R_MAC_GENERATION_ERROR);		return 0;	}	if (!(ASN1_OCTET_STRING_set (p12->mac->dinfo->digest, mac, maclen))) {		PKCS12err(PKCS12_F_PKCS12_PKCS12_SET_MAC,PKCS12_R_MAC_STRING_SET_ERROR);						return 0;	}	return 1;}