k->dsa = NULL; k->rsa = NULL;
key_new(int type){	Key *k;	RSA *rsa;	DSA *dsa;	k = xmalloc(sizeof(*k));	k->type = type;	switch (k->type) {	case KEY_RSA:		rsa = RSA_new();		rsa->n = BN_new();		rsa->e = BN_new();		k->rsa = rsa;		break;	case KEY_DSA:		dsa = DSA_new();		dsa->p = BN_new();		dsa->q = BN_new();		dsa->g = BN_new();		dsa->pub_key = BN_new();		k->dsa = dsa;		break;	case KEY_EMPTY:		k->dsa = NULL;		k->rsa = NULL;		break;	default:		fatal("key_new: bad key type %d", k->type);		break;	}	return k;}