Changeset 139

Show
Ignore:
Timestamp:
11/27/06 10:47:17 (2 years ago)
Author:
ccase
Message:

Updated to upstream.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • upstream/ipsec-tools/ChangeLog

    r86 r139  
     12006-11-12  Matthew Grooms <mgrooms@shrew.net> 
     2        * src/racoon/sainfo.c: fix anonymous sainfo selection. 
     3 
    142006-10-22  Yvan Vanhullebus  <vanhu@netasq.com> 
    25        From Michal Ruzicka <michal.ruzicka@comstar.cz>: 
  • upstream/ipsec-tools/src/racoon/crypto_openssl.c

    r86 r139  
    1 /*      $NetBSD: crypto_openssl.c,v 1.10 2006/10/06 12:02:27 manu Exp $       */ 
     1/*      $NetBSD: crypto_openssl.c,v 1.11 2006/11/09 20:22:18 christos Exp $   */ 
    22 
    33/* Id: crypto_openssl.c,v 1.47 2006/05/06 20:42:09 manubsd Exp */ 
     
    24982498        BIO *bio=NULL, *b64=NULL; 
    24992499        vchar_t *res = NULL; 
    2500         char out[inlen*2]
     2500        char *outb
    25012501        long outlen; 
    25022502 
     2503        outb = malloc(inlen * 2); 
     2504        if (outb == NULL) 
     2505                goto out; 
    25032506        bio = BIO_new_mem_buf(in, inlen); 
    25042507        b64 = BIO_new(BIO_f_base64()); 
     
    25062509        bio = BIO_push(b64, bio); 
    25072510 
    2508         outlen = BIO_read(bio, out, inlen * 2); 
     2511        outlen = BIO_read(bio, outb, inlen * 2); 
    25092512        if (outlen <= 0) { 
    25102513                plog(LLV_ERROR, LOCATION, NULL, "%s\n", eay_strerror()); 
     
    25162519                goto out; 
    25172520 
    2518         memcpy(res->v, out, outlen); 
     2521        memcpy(res->v, outb, outlen); 
    25192522 
    25202523out: 
     2524        if (outb) 
     2525                free(outb); 
    25212526        if (bio) 
    25222527                BIO_free_all(bio); 
  • upstream/ipsec-tools/src/racoon/sainfo.c

    r86 r139  
    1 /*      $NetBSD: sainfo.c,v 1.6 2006/10/19 09:35:51 vanhu Exp $       */ 
     1/*      $NetBSD: sainfo.c,v 1.7 2006/11/16 00:30:55 mgrooms Exp $     */ 
    22 
    33/*      $KAME: sainfo.c,v 1.16 2003/06/27 07:32:39 sakane Exp $ */ 
     
    112112  
    113113                plog(LLV_DEBUG, LOCATION, NULL, 
    114                         "getsainfo params: loc=\'%s\', rmt=\'%s\', peer=\'%s\'\n", 
    115                         dloc, drmt, dpeer ); 
     114                        "getsainfo params: loc=\'%s\', rmt=\'%s\', peer=\'%s\', id=%i\n", 
     115                        dloc, drmt, dpeer, remoteid ); 
    116116  
    117117                racoon_free(dloc); 
     
    157157        } 
    158158 
    159         if ((anonymous != NULL) && (pass == 1)) { 
     159        if ((anonymous == NULL) && (pass == 1)) { 
    160160                pass++; 
    161161                goto again; 
     
    296296                id_i = ipsecdoi_id2str(si->id_i); 
    297297  
    298         snprintf(buf, 255, "loc=\'%s\', rmt=\'%s\', peer=\'%s\'", idloc, idrmt, id_i); 
     298        snprintf(buf, 255, "loc=\'%s\', rmt=\'%s\', peer=\'%s\', id=%i", 
     299                idloc, idrmt, id_i, si->remoteid); 
    299300  
    300301        racoon_free(idloc);