Changeset 139
- Timestamp:
- 11/27/06 10:47:17
(2 years ago)
- Author:
- ccase
- Message:
Updated to upstream.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r86 |
r139 |
|
| | 1 | 2006-11-12 Matthew Grooms <mgrooms@shrew.net> |
|---|
| | 2 | * src/racoon/sainfo.c: fix anonymous sainfo selection. |
|---|
| | 3 | |
|---|
| 1 | 4 | 2006-10-22 Yvan Vanhullebus <vanhu@netasq.com> |
|---|
| 2 | 5 | From Michal Ruzicka <michal.ruzicka@comstar.cz>: |
|---|
| 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 $ */ |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | /* Id: crypto_openssl.c,v 1.47 2006/05/06 20:42:09 manubsd Exp */ |
|---|
| … | … | |
| 2498 | 2498 | BIO *bio=NULL, *b64=NULL; |
|---|
| 2499 | 2499 | vchar_t *res = NULL; |
|---|
| 2500 | | char out[inlen*2]; |
|---|
| | 2500 | char *outb; |
|---|
| 2501 | 2501 | long outlen; |
|---|
| 2502 | 2502 | |
|---|
| | 2503 | outb = malloc(inlen * 2); |
|---|
| | 2504 | if (outb == NULL) |
|---|
| | 2505 | goto out; |
|---|
| 2503 | 2506 | bio = BIO_new_mem_buf(in, inlen); |
|---|
| 2504 | 2507 | b64 = BIO_new(BIO_f_base64()); |
|---|
| … | … | |
| 2506 | 2509 | bio = BIO_push(b64, bio); |
|---|
| 2507 | 2510 | |
|---|
| 2508 | | outlen = BIO_read(bio, out, inlen * 2); |
|---|
| | 2511 | outlen = BIO_read(bio, outb, inlen * 2); |
|---|
| 2509 | 2512 | if (outlen <= 0) { |
|---|
| 2510 | 2513 | plog(LLV_ERROR, LOCATION, NULL, "%s\n", eay_strerror()); |
|---|
| … | … | |
| 2516 | 2519 | goto out; |
|---|
| 2517 | 2520 | |
|---|
| 2518 | | memcpy(res->v, out, outlen); |
|---|
| | 2521 | memcpy(res->v, outb, outlen); |
|---|
| 2519 | 2522 | |
|---|
| 2520 | 2523 | out: |
|---|
| | 2524 | if (outb) |
|---|
| | 2525 | free(outb); |
|---|
| 2521 | 2526 | if (bio) |
|---|
| 2522 | 2527 | BIO_free_all(bio); |
|---|
| 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 $ */ |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | /* $KAME: sainfo.c,v 1.16 2003/06/27 07:32:39 sakane Exp $ */ |
|---|
| … | … | |
| 112 | 112 | |
|---|
| 113 | 113 | 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 ); |
|---|
| 116 | 116 | |
|---|
| 117 | 117 | racoon_free(dloc); |
|---|
| … | … | |
| 157 | 157 | } |
|---|
| 158 | 158 | |
|---|
| 159 | | if ((anonymous != NULL) && (pass == 1)) { |
|---|
| | 159 | if ((anonymous == NULL) && (pass == 1)) { |
|---|
| 160 | 160 | pass++; |
|---|
| 161 | 161 | goto again; |
|---|
| … | … | |
| 296 | 296 | id_i = ipsecdoi_id2str(si->id_i); |
|---|
| 297 | 297 | |
|---|
| 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); |
|---|
| 299 | 300 | |
|---|
| 300 | 301 | racoon_free(idloc); |
|---|
Download in other formats:
* Generating other formats may take time.