2004-10-11 14:45:50 +02:00
|
|
|
/* gpgkeys_finger.c - fetch a key via finger
|
2005-01-14 00:37:26 +01:00
|
|
|
* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
2004-10-11 14:45:50 +02:00
|
|
|
*
|
|
|
|
* 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
|
2007-07-04 21:49:40 +02:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-10-11 14:45:50 +02:00
|
|
|
* (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
|
2007-07-04 21:49:40 +02:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2004-10-11 14:45:50 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#ifdef HAVE_GETOPT_H
|
|
|
|
#include <getopt.h>
|
|
|
|
#endif
|
|
|
|
|
2008-04-21 21:13:36 +02:00
|
|
|
#ifdef HAVE_W32_SYSTEM
|
2004-10-11 14:45:50 +02:00
|
|
|
#include <windows.h>
|
|
|
|
#else
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define INCLUDED_BY_MAIN_MODULE 1
|
|
|
|
#include "util.h"
|
|
|
|
#include "keyserver.h"
|
2004-10-13 20:30:29 +02:00
|
|
|
#include "ksutil.h"
|
2006-08-16 12:47:53 +02:00
|
|
|
#include "iobuf.h"
|
2004-10-11 14:45:50 +02:00
|
|
|
|
2008-04-21 21:13:36 +02:00
|
|
|
#ifdef HAVE_W32_SYSTEM
|
2004-10-11 14:45:50 +02:00
|
|
|
#define sock_close(a) closesocket(a)
|
|
|
|
#else
|
|
|
|
#define sock_close(a) close(a)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern char *optarg;
|
|
|
|
extern int optind;
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
static FILE *input,*output,*console;
|
|
|
|
static struct ks_options *opt;
|
2004-10-11 14:45:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Connect to SERVER at PORT and return a file descriptor or -1 on
|
|
|
|
error. */
|
|
|
|
static int
|
|
|
|
connect_server (const char *server, unsigned short port)
|
|
|
|
{
|
|
|
|
int sock = -1;
|
|
|
|
|
2008-04-21 21:13:36 +02:00
|
|
|
#ifdef HAVE_W32_SYSTEM
|
2004-10-11 14:45:50 +02:00
|
|
|
struct hostent *hp;
|
|
|
|
struct sockaddr_in addr;
|
|
|
|
unsigned long l;
|
|
|
|
|
2008-04-21 21:13:36 +02:00
|
|
|
w32_init_sockets ();
|
2004-10-11 14:45:50 +02:00
|
|
|
|
|
|
|
memset (&addr, 0, sizeof addr);
|
|
|
|
addr.sin_family = AF_INET;
|
|
|
|
addr.sin_port = htons (port);
|
|
|
|
|
|
|
|
/* Win32 gethostbyname doesn't handle IP addresses internally, so we
|
|
|
|
try inet_addr first on that platform only. */
|
2005-01-13 23:08:18 +01:00
|
|
|
if ((l = inet_addr (server)) != INADDR_NONE)
|
2004-10-16 18:04:19 +02:00
|
|
|
memcpy (&addr.sin_addr, &l, sizeof l);
|
2004-10-11 14:45:50 +02:00
|
|
|
else if ((hp = gethostbyname (server)))
|
|
|
|
{
|
|
|
|
if (hp->h_addrtype != AF_INET)
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: unknown address family for `%s'\n",
|
|
|
|
server);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
if (hp->h_length != 4)
|
|
|
|
{
|
2004-10-28 23:53:51 +02:00
|
|
|
fprintf (console, "gpgkeys: illegal address length for `%s'\n",
|
2004-10-11 14:45:50 +02:00
|
|
|
server);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
memcpy (&addr.sin_addr, hp->h_addr, hp->h_length);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: host `%s' not found: ec=%d\n",
|
|
|
|
server, (int)WSAGetLastError ());
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
sock = socket (AF_INET, SOCK_STREAM, 0);
|
|
|
|
if (sock == INVALID_SOCKET)
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: error creating socket: ec=%d\n",
|
|
|
|
(int)WSAGetLastError ());
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (connect (sock, (struct sockaddr *)&addr, sizeof addr))
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: error connecting `%s': ec=%d\n",
|
|
|
|
server, (int)WSAGetLastError ());
|
|
|
|
sock_close (sock);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
struct sockaddr_in addr;
|
|
|
|
struct hostent *host;
|
|
|
|
|
|
|
|
addr.sin_family = AF_INET;
|
|
|
|
addr.sin_port = htons (port);
|
|
|
|
host = gethostbyname ((char*)server);
|
|
|
|
if (!host)
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: host `%s' not found: %s\n",
|
|
|
|
server, strerror (errno));
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
addr.sin_addr = *(struct in_addr*)host->h_addr;
|
|
|
|
|
|
|
|
sock = socket (AF_INET, SOCK_STREAM, 0);
|
|
|
|
if (sock == -1)
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: error creating socket: %s\n",
|
|
|
|
strerror (errno));
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (connect (sock, (struct sockaddr *)&addr, sizeof addr) == -1)
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: error connecting `%s': %s\n",
|
|
|
|
server, strerror (errno));
|
|
|
|
close (sock);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return sock;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
write_server (int sock, const char *data, size_t length)
|
|
|
|
{
|
|
|
|
int nleft;
|
|
|
|
|
|
|
|
nleft = length;
|
|
|
|
while (nleft > 0)
|
|
|
|
{
|
|
|
|
int nwritten;
|
|
|
|
|
2008-04-21 21:13:36 +02:00
|
|
|
#ifdef HAVE_W32_SYSTEM
|
2004-10-11 14:45:50 +02:00
|
|
|
nwritten = send (sock, data, nleft, 0);
|
|
|
|
if ( nwritten == SOCKET_ERROR )
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: write failed: ec=%d\n",
|
|
|
|
(int)WSAGetLastError ());
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
nwritten = write (sock, data, nleft);
|
|
|
|
if (nwritten == -1)
|
|
|
|
{
|
|
|
|
if (errno == EINTR)
|
|
|
|
continue;
|
|
|
|
if (errno == EAGAIN)
|
|
|
|
{
|
|
|
|
struct timeval tv;
|
|
|
|
|
|
|
|
tv.tv_sec = 0;
|
|
|
|
tv.tv_usec = 50000;
|
|
|
|
select(0, NULL, NULL, NULL, &tv);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
fprintf (console, "gpgkeys: write failed: %s\n", strerror(errno));
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
nleft -=nwritten;
|
|
|
|
data += nwritten;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Send the finger REQUEST to the server. Returns 0 and a file descriptor
|
|
|
|
in R_SOCK if the request was sucessful. */
|
|
|
|
static int
|
|
|
|
send_request (const char *request, int *r_sock)
|
|
|
|
{
|
|
|
|
char *server;
|
|
|
|
char *name;
|
|
|
|
int sock;
|
|
|
|
|
|
|
|
*r_sock = -1;
|
|
|
|
name = strdup (request);
|
|
|
|
if (!name)
|
|
|
|
{
|
|
|
|
fprintf(console,"gpgkeys: out of memory\n");
|
|
|
|
return KEYSERVER_NO_MEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
server = strchr (name, '@');
|
|
|
|
if (!server)
|
|
|
|
{
|
|
|
|
fprintf (console, "gpgkeys: no name included in request\n");
|
|
|
|
free (name);
|
|
|
|
return KEYSERVER_GENERAL_ERROR;
|
|
|
|
}
|
|
|
|
*server++ = 0;
|
|
|
|
|
|
|
|
sock = connect_server (server, 79);
|
|
|
|
if (sock == -1)
|
|
|
|
{
|
|
|
|
free (name);
|
|
|
|
return KEYSERVER_UNREACHABLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (write_server (sock, name, strlen (name))
|
|
|
|
|| write_server (sock, "\r\n", 2))
|
|
|
|
{
|
|
|
|
free (name);
|
|
|
|
sock_close (sock);
|
|
|
|
return KEYSERVER_GENERAL_ERROR;
|
|
|
|
}
|
|
|
|
free (name);
|
|
|
|
*r_sock = sock;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
get_key (char *getkey)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
int sock;
|
2006-08-16 12:47:53 +02:00
|
|
|
iobuf_t fp_read;
|
2004-10-11 14:45:50 +02:00
|
|
|
unsigned int maxlen, buflen, gotit=0;
|
2004-10-14 09:21:17 +02:00
|
|
|
byte *line = NULL;
|
2004-10-11 14:45:50 +02:00
|
|
|
|
|
|
|
if (strncmp (getkey,"0x",2)==0)
|
|
|
|
getkey+=2;
|
|
|
|
|
|
|
|
/* Frankly we don't know what keys the server will return; we
|
|
|
|
indicated the requested key anyway. */
|
|
|
|
fprintf(output,"KEY 0x%s BEGIN\n",getkey);
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
rc=send_request(opt->opaque,&sock);
|
2004-10-11 14:45:50 +02:00
|
|
|
if(rc)
|
|
|
|
{
|
|
|
|
fprintf(output,"KEY 0x%s FAILED %d\n",getkey, rc);
|
|
|
|
sock_close (sock);
|
|
|
|
return KEYSERVER_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hmmm, we use iobuf here only to cope with Windows socket
|
|
|
|
peculiarities (we can't used fdopen). */
|
|
|
|
fp_read = iobuf_sockopen (sock , "r");
|
|
|
|
if (!fp_read)
|
|
|
|
{
|
|
|
|
fprintf(output,"KEY 0x%s FAILED %d\n",getkey, KEYSERVER_INTERNAL_ERROR);
|
|
|
|
sock_close (sock);
|
|
|
|
return KEYSERVER_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
while ( iobuf_read_line ( fp_read, &line, &buflen, &maxlen))
|
|
|
|
{
|
|
|
|
maxlen=1024;
|
|
|
|
|
|
|
|
if(gotit)
|
|
|
|
{
|
2006-09-22 13:39:45 +02:00
|
|
|
print_nocr(output, (const char*)line);
|
|
|
|
if (!strncmp((char*)line,END,strlen(END)))
|
2004-10-11 14:45:50 +02:00
|
|
|
break;
|
|
|
|
}
|
2006-09-22 13:39:45 +02:00
|
|
|
else if(!strncmp((char*)line,BEGIN,strlen(BEGIN)))
|
2004-10-11 14:45:50 +02:00
|
|
|
{
|
2006-09-22 13:39:45 +02:00
|
|
|
print_nocr(output, (const char*)line);
|
2004-10-11 14:45:50 +02:00
|
|
|
gotit=1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(gotit)
|
|
|
|
fprintf (output,"KEY 0x%s END\n", getkey);
|
|
|
|
else
|
|
|
|
{
|
2005-12-08 00:00:30 +01:00
|
|
|
fprintf(console,"gpgkeys: no key data found for finger:%s\n",
|
|
|
|
opt->opaque);
|
|
|
|
fprintf(output,"KEY 0x%s FAILED %d\n",getkey,KEYSERVER_KEY_NOT_FOUND);
|
2004-10-11 14:45:50 +02:00
|
|
|
}
|
|
|
|
|
2005-07-27 20:10:56 +02:00
|
|
|
xfree(line);
|
2004-10-11 14:45:50 +02:00
|
|
|
iobuf_close (fp_read);
|
|
|
|
|
|
|
|
return KEYSERVER_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-15 14:19:06 +02:00
|
|
|
static void
|
|
|
|
show_help (FILE *fp)
|
|
|
|
{
|
2009-05-11 05:21:41 +02:00
|
|
|
fprintf (fp,"-h, --help\thelp\n");
|
|
|
|
fprintf (fp,"-V\t\tmachine readable version\n");
|
|
|
|
fprintf (fp,"--version\thuman readable version\n");
|
|
|
|
fprintf (fp,"-o\t\toutput to this file\n");
|
2004-10-15 14:19:06 +02:00
|
|
|
}
|
|
|
|
|
2004-10-11 14:45:50 +02:00
|
|
|
int
|
|
|
|
main(int argc,char *argv[])
|
|
|
|
{
|
2005-03-17 17:42:41 +01:00
|
|
|
int arg,ret=KEYSERVER_INTERNAL_ERROR;
|
2004-10-11 14:45:50 +02:00
|
|
|
char line[MAX_LINE];
|
|
|
|
char *thekey=NULL;
|
|
|
|
|
|
|
|
console=stderr;
|
|
|
|
|
2004-10-15 14:19:06 +02:00
|
|
|
/* Kludge to implement standard GNU options. */
|
|
|
|
if (argc > 1 && !strcmp (argv[1], "--version"))
|
|
|
|
{
|
2005-02-05 16:04:59 +01:00
|
|
|
fputs ("gpgkeys_finger (GnuPG) " VERSION"\n", stdout);
|
2004-10-15 14:19:06 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (argc > 1 && !strcmp (argv[1], "--help"))
|
|
|
|
{
|
|
|
|
show_help (stdout);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2004-10-11 14:45:50 +02:00
|
|
|
while((arg=getopt(argc,argv,"hVo:"))!=-1)
|
|
|
|
switch(arg)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
case 'h':
|
2004-10-15 14:19:06 +02:00
|
|
|
show_help (console);
|
2004-10-11 14:45:50 +02:00
|
|
|
return KEYSERVER_OK;
|
|
|
|
|
|
|
|
case 'V':
|
|
|
|
fprintf(stdout,"%d\n%s\n",KEYSERVER_PROTO_VERSION,VERSION);
|
|
|
|
return KEYSERVER_OK;
|
|
|
|
|
|
|
|
case 'o':
|
|
|
|
output=fopen(optarg,"w");
|
|
|
|
if(output==NULL)
|
|
|
|
{
|
2004-10-11 22:33:22 +02:00
|
|
|
fprintf(console,"gpgkeys: Cannot open output file `%s': %s\n",
|
2004-10-11 14:45:50 +02:00
|
|
|
optarg,strerror(errno));
|
|
|
|
return KEYSERVER_INTERNAL_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(argc>optind)
|
|
|
|
{
|
|
|
|
input=fopen(argv[optind],"r");
|
|
|
|
if(input==NULL)
|
|
|
|
{
|
2004-10-11 22:33:22 +02:00
|
|
|
fprintf(console,"gpgkeys: Cannot open input file `%s': %s\n",
|
2004-10-11 14:45:50 +02:00
|
|
|
argv[optind],strerror(errno));
|
|
|
|
return KEYSERVER_INTERNAL_ERROR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(input==NULL)
|
|
|
|
input=stdin;
|
|
|
|
|
|
|
|
if(output==NULL)
|
|
|
|
output=stdout;
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
opt=init_ks_options();
|
|
|
|
if(!opt)
|
|
|
|
return KEYSERVER_NO_MEMORY;
|
|
|
|
|
2004-10-11 14:45:50 +02:00
|
|
|
/* Get the command and info block */
|
|
|
|
|
|
|
|
while(fgets(line,MAX_LINE,input)!=NULL)
|
|
|
|
{
|
2005-03-17 17:42:41 +01:00
|
|
|
int err;
|
2004-10-11 14:45:50 +02:00
|
|
|
|
|
|
|
if(line[0]=='\n')
|
|
|
|
break;
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
err=parse_ks_options(line,opt);
|
|
|
|
if(err>0)
|
2004-10-11 14:45:50 +02:00
|
|
|
{
|
2005-03-17 17:42:41 +01:00
|
|
|
ret=err;
|
2004-10-14 22:36:40 +02:00
|
|
|
goto fail;
|
|
|
|
}
|
2005-03-17 17:42:41 +01:00
|
|
|
else if(err==0)
|
|
|
|
continue;
|
|
|
|
}
|
2004-10-14 22:36:40 +02:00
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
if(opt->host)
|
|
|
|
{
|
|
|
|
fprintf(console,"gpgkeys: finger://relay/user syntax is not"
|
|
|
|
" supported. Use finger:user instead.\n");
|
|
|
|
ret=KEYSERVER_NOT_SUPPORTED;
|
|
|
|
goto fail;
|
2004-10-11 14:45:50 +02:00
|
|
|
}
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
if(opt->timeout && register_timeout()==-1)
|
2004-10-13 20:30:29 +02:00
|
|
|
{
|
|
|
|
fprintf(console,"gpgkeys: unable to register timeout handler\n");
|
|
|
|
return KEYSERVER_INTERNAL_ERROR;
|
|
|
|
}
|
|
|
|
|
2004-10-11 14:45:50 +02:00
|
|
|
/* If it's a GET or a SEARCH, the next thing to come in is the
|
|
|
|
keyids. If it's a SEND, then there are no keyids. */
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
if(opt->action==KS_GET)
|
2004-10-11 14:45:50 +02:00
|
|
|
{
|
|
|
|
/* Eat the rest of the file */
|
|
|
|
for(;;)
|
|
|
|
{
|
|
|
|
if(fgets(line,MAX_LINE,input)==NULL)
|
|
|
|
break;
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if(line[0]=='\n' || line[0]=='\0')
|
|
|
|
break;
|
|
|
|
|
|
|
|
if(!thekey)
|
|
|
|
{
|
|
|
|
thekey=strdup(line);
|
|
|
|
if(!thekey)
|
|
|
|
{
|
|
|
|
fprintf(console,"gpgkeys: out of memory while "
|
|
|
|
"building key list\n");
|
|
|
|
ret=KEYSERVER_NO_MEMORY;
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Trim the trailing \n */
|
|
|
|
thekey[strlen(line)-1]='\0';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
fprintf(console,
|
|
|
|
"gpgkeys: this keyserver type only supports key retrieval\n");
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
if(!thekey || !opt->opaque)
|
2004-10-11 14:45:50 +02:00
|
|
|
{
|
|
|
|
fprintf(console,"gpgkeys: invalid keyserver instructions\n");
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Send the response */
|
|
|
|
|
|
|
|
fprintf(output,"VERSION %d\n",KEYSERVER_PROTO_VERSION);
|
|
|
|
fprintf(output,"PROGRAM %s\n\n",VERSION);
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
if(opt->verbose>1)
|
2004-10-11 14:45:50 +02:00
|
|
|
{
|
2005-03-17 17:42:41 +01:00
|
|
|
fprintf(console,"User:\t\t%s\n",opt->opaque);
|
2004-10-11 14:45:50 +02:00
|
|
|
fprintf(console,"Command:\tGET\n");
|
|
|
|
}
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
set_timeout(opt->timeout);
|
2004-10-13 20:30:29 +02:00
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
ret=get_key(thekey);
|
2004-10-11 14:45:50 +02:00
|
|
|
|
|
|
|
fail:
|
|
|
|
|
|
|
|
free(thekey);
|
|
|
|
|
|
|
|
if(input!=stdin)
|
|
|
|
fclose(input);
|
|
|
|
|
|
|
|
if(output!=stdout)
|
|
|
|
fclose(output);
|
|
|
|
|
2005-03-17 17:42:41 +01:00
|
|
|
free_ks_options(opt);
|
|
|
|
|
2004-10-11 14:45:50 +02:00
|
|
|
return ret;
|
|
|
|
}
|