Home | History | Annotate | Download | only in racoon

Lines Matching defs:new

2932 	/* create buffer to save new iv */
2972 * save new iv and old iv.
2979 vchar_t *buf = NULL, *new = NULL;
3018 new = alg_oakley_encdef_decrypt(iph1->approval->enctype,
3020 if (new == NULL || new->v == NULL || new->l == 0) {
3036 plogdump(LLV_DEBUG, new->v, new->l);
3040 padlen = new->v[new->l - 1] + 1;
3042 padlen = new->v[new->l - 1];
3047 if (padlen > new->l) {
3050 padlen, new->l);
3051 plogdump(LLV_ERROR, new->v, new->l);
3054 new->l -= padlen;
3060 /* create new buffer */
3061 len = sizeof(struct isakmp) + new->l;
3069 memcpy(buf->v + sizeof(struct isakmp), new->v, new->l);
3086 if (new != NULL)
3087 vfree(new);
3100 vchar_t *buf = 0, *new = 0;
3151 new = alg_oakley_encdef_encrypt(iph1->approval->enctype,
3153 if (new == NULL) {
3169 memcpy(ivp->v, (caddr_t)&new->v[new->l - blen], blen);
3174 /* create new buffer */
3175 len = sizeof(struct isakmp) + new->l;
3183 memcpy(buf->v + sizeof(struct isakmp), new->v, new->l);
3195 if (new != NULL)
3196 vfree(new);