diff options
author | Werner Koch <[email protected]> | 1999-01-16 08:29:29 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-01-16 08:29:29 +0000 |
commit | 29c08419dbb0828d9a17a8a8428a028c9c35d8e4 (patch) | |
tree | a30c238693ebae52c36f0f2b59137c499bbdd393 /g10/pref.c | |
parent | See ChangeLog: Wed Jan 13 14:10:15 CET 1999 Werner Koch (diff) | |
download | gnupg-29c08419dbb0828d9a17a8a8428a028c9c35d8e4.tar.gz gnupg-29c08419dbb0828d9a17a8a8428a028c9c35d8e4.zip |
See ChangeLog: Sat Jan 16 09:27:30 CET 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r-- | g10/pref.c | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/g10/pref.c b/g10/pref.c deleted file mode 100644 index 53ae41845..000000000 --- a/g10/pref.c +++ /dev/null @@ -1,81 +0,0 @@ -/* pref.c - * Copyright (C) 1998 Free Software Foundation, Inc. - * - * This file is part of GnuPG. - * - * GnuPG is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * GnuPG is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - */ - -#define DEFINES_PREF_LIST 1 -#include <config.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -#include <assert.h> - -#include "errors.h" -#include "memory.h" -#include "util.h" -#include "ttyio.h" -#include "i18n.h" -#include "pref.h" - - -#define N_CIPHERS 3 -#define N_DIGESTS 4 -#define N_COMPRS 3 - -struct pref_list_s { - PREF_LIST *extend; /* if we need more, we link them together */ - byte cipher[N_CIPHERS]; /* cipher algos */ - byte digest[N_DIGESTS]; /* digest algos */ - byte compr [N_COMPRS ]; /* compress algos (a 255 denotes no compression)*/ -}; - - -#if 0 -PREF_LIST -new_pref_list() -{ - return m_alloc_clear( sizeof(*PREF_LIST) ); -} - -void -release_pref_list( PREF_LIST pref ) -{ - while( pref ) { - PREF_LIST tmp = pref->extend; - m_free( pref ); - pref = tmp; - } -} - -PREF_LIST -copy_pref_list( PREF_LIST s ) -{ - PREF_LIST ss, ss, d = new_pref_list(); - *d = *s; - for( ss = s->extend; ss; ss = ss->extend ) { - - WORK WORK WORK - d->extend = new_pref_list(); - - *d->extend = *ss; - } - return d; -} -#endif - |