Lines Matching refs:newivm
3013 struct isakmp_ivm *newivm = NULL; local
3038 newivm = racoon_calloc(1, sizeof(struct isakmp_ivm));
3039 if (newivm == NULL) {
3047 newivm->iv = oakley_hash(buf, iph1);
3048 if (newivm->iv == NULL) {
3050 oakley_delivm(newivm);
3055 newivm->iv->l = alg_oakley_encdef_blocklen(iph1->approval->enctype);
3056 if (newivm->iv->l == -1) {
3061 oakley_delivm(newivm);
3066 if ((newivm->ive = vdup(newivm->iv)) == NULL) {
3070 oakley_delivm(newivm);
3077 plogdump(LLV_DEBUG, newivm->iv->v, newivm->iv->l);
3079 iph1->ivm = newivm;
3098 struct isakmp_ivm *newivm = NULL; local
3125 newivm = racoon_calloc(1, sizeof(struct isakmp_ivm));
3126 if (newivm == NULL) {
3133 if ((newivm->iv = oakley_hash(buf, iph1)) == NULL)
3137 newivm->iv->l = alg_oakley_encdef_blocklen(iph1->approval->enctype);
3138 if (newivm->iv->l == -1) {
3146 if ((newivm->ive = vdup(newivm->iv)) == NULL) {
3154 plogdump(LLV_DEBUG, newivm->iv->v, newivm->iv->l);
3157 if (error && newivm != NULL){
3158 oakley_delivm(newivm);
3159 newivm=NULL;
3163 return newivm;