1 /* NSS keys for the Pidgin encryption plugin */ 2 /* Copyright (C) 2001-2003 William Tompkins */ 3 4 /* This plugin is free software, distributed under the GNU General Public */ 5 /* License. */ 6 /* Please see the file "COPYING" distributed with this source code */ 7 /* for more details */ 8 /* */ 9 /* */ 10 /* This software is distributed in the hope that it will be useful, */ 11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ 13 /* General Public License for more details. */ 14 15 /* To compile and use: */ 16 /* See INSTALL file. */ 17 18 #ifndef NSSRSA_H 19 #define NSSRSA_H 20 21 #include "pidgin-encryption-config.h" 22 23 #include <gdk/gdk.h> 24 25 #include "nonce.h" 26 27 /* suppress warnings: our header defines this, then nss tries to */ make_map()28#ifdef HAVE_LONG_LONG 29 #undef HAVE_LONG_LONG 30 #endif 31 /* From NSS libraries: */ 32 #include <nss.h> 33 #include <keyhi.h> 34 35 typedef struct { 36 SECKEYPrivateKey* priv; 37 SECKEYPublicKey* pub; 38 Nonce nonce; 39 } RSA_NSS_KEY; 40 41 extern gboolean rsa_nss_init(void); 42 43 #endif 44