~ubuntu-branches/ubuntu/raring/gnupg2/raring-proposed

« back to all changes in this revision

Viewing changes to common/ssh-utils.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-11-06 11:25:58 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20121106112558-kxptsug6ivixhx8m
Tags: 2.0.19-1ubuntu1
* Resynchronize on Debian, remaining changes:
  - Add udev rules to give gpg access to some smartcard readers;
    Debian #543217.
    . debian/gnupg2.dev: udev rules to set ACLs on SCM smartcard readers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ssh-utils.c - Secure Shell helper function definitions
 
2
 * Copyright (C) 2011 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
 */
 
19
 
 
20
#ifndef GNUPG_COMMON_SSH_UTILS_H
 
21
#define GNUPG_COMMON_SSH_UTILS_H
 
22
 
 
23
 
 
24
gpg_error_t _ssh_get_fingerprint (gcry_sexp_t key, void **r_fpr, size_t *r_len,
 
25
                                  gpg_err_source_t errsource);
 
26
#define ssh_get_fingerprint(a,b,c)                              \
 
27
  _ssh_get_fingerprint ((a), (b), (c), GPG_ERR_SOURCE_DEFAULT)
 
28
 
 
29
gpg_error_t _ssh_get_fingerprint_string (gcry_sexp_t key, char **r_fprstr,
 
30
                                         gpg_err_source_t errsource);
 
31
#define ssh_get_fingerprint_string(a,b)                         \
 
32
  _ssh_get_fingerprint_string ((a), (b), GPG_ERR_SOURCE_DEFAULT)
 
33
 
 
34
 
 
35
 
 
36
#endif /*GNUPG_COMMON_SSH_UTILS_H*/