File: rsa_nss.h

package info (click to toggle)
pidgin-encryption 3.1-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,916 kB
  • ctags: 961
  • sloc: sh: 10,460; ansic: 8,821; makefile: 376; yacc: 318
file content (43 lines) | stat: -rwxr-xr-x 1,524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*             NSS keys for the Pidgin encryption plugin                  */
/*            Copyright (C) 2001-2003 William Tompkins                    */

/* This plugin is free software, distributed under the GNU General Public */
/* License.                                                               */
/* Please see the file "COPYING" distributed with this source code        */
/* for more details                                                       */
/*                                                                        */
/*                                                                        */
/*    This software 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.                             */

/*   To compile and use:                                                  */
/*     See INSTALL file.                                                  */

#ifndef NSSRSA_H
#define NSSRSA_H

#include "pidgin-encryption-config.h"

#include <gdk/gdk.h>

#include "nonce.h"

/* suppress warnings: our header defines this, then nss tries to */
#ifdef HAVE_LONG_LONG
#undef HAVE_LONG_LONG
#endif
/* From NSS libraries: */
#include <nss.h>
#include <keyhi.h>

typedef struct {
   SECKEYPrivateKey* priv;
   SECKEYPublicKey* pub;
   Nonce nonce;
} RSA_NSS_KEY;

extern gboolean rsa_nss_init(void);

#endif