~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-updates

« back to all changes in this revision

Viewing changes to g10/keyserver-internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Keyserver internals */
 
1
/* keyserver-internal.h - Keyserver internals
 
2
 * Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
 
3
 *
 
4
 * This file is part of GnuPG.
 
5
 *
 
6
 * GnuPG is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * GnuPG is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 
18
 */
2
19
 
3
20
#ifndef _KEYSERVER_INTERNAL_H_
4
21
#define _KEYSERVER_INTERNAL_H_
5
22
 
6
23
#include <time.h>
7
 
#include "keyserver.h"
 
24
#include "../common/keyserver.h"
8
25
#include "../common/iobuf.h"
9
26
#include "types.h"
10
27
 
11
 
void parse_keyserver_options(char *options);
12
 
int parse_keyserver_uri(char *uri,
13
 
                        const char *configname,unsigned int configlineno);
14
 
int keyserver_export(STRLIST users);
15
 
int keyserver_import(STRLIST users);
16
 
int keyserver_import_fprint(const byte *fprint,size_t fprint_len);
17
 
int keyserver_import_keyid(u32 *keyid);
18
 
int keyserver_refresh(STRLIST users);
19
 
int keyserver_search(STRLIST tokens);
 
28
int parse_keyserver_options(char *options);
 
29
void free_keyserver_spec(struct keyserver_spec *keyserver);
 
30
struct keyserver_spec *keyserver_match(struct keyserver_spec *spec);
 
31
struct keyserver_spec *parse_keyserver_uri(const char *string,
 
32
                                           int require_scheme,
 
33
                                           const char *configname,
 
34
                                           unsigned int configlineno);
 
35
struct keyserver_spec *parse_preferred_keyserver(PKT_signature *sig);
 
36
int keyserver_export(strlist_t users);
 
37
int keyserver_import(strlist_t users);
 
38
int keyserver_import_fprint(const byte *fprint,size_t fprint_len,
 
39
                            struct keyserver_spec *keyserver);
 
40
int keyserver_import_keyid(u32 *keyid,struct keyserver_spec *keyserver);
 
41
int keyserver_refresh(strlist_t users);
 
42
int keyserver_search(strlist_t tokens);
 
43
int keyserver_fetch(strlist_t urilist);
 
44
int keyserver_import_cert(const char *name,
 
45
                          unsigned char **fpr,size_t *fpr_len);
 
46
int keyserver_import_pka(const char *name,unsigned char **fpr,size_t *fpr_len);
 
47
int keyserver_import_name(const char *name,unsigned char **fpr,size_t *fpr_len,
 
48
                          struct keyserver_spec *keyserver);
 
49
int keyserver_import_ldap(const char *name,
 
50
                          unsigned char **fpr,size_t *fpr_len);
20
51
 
21
52
#endif /* !_KEYSERVER_INTERNAL_H_ */