00001 /* 00002 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). 00003 * rsa.h: A header for the RSA functions. 00004 * 00005 * Copyright (C) 2002 by the past and present ircd coders, and others. 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 * USA 00021 * 00022 * $Id: rsa.h 33 2005-10-02 20:50:00Z knight $ 00023 */ 00024 #ifndef INCLUDED_rsa_h 00025 #define INCLUDED_rsa_h 00026 00027 #include "setup.h" 00028 00029 #ifdef HAVE_LIBCRYPTO 00030 extern void report_crypto_errors(void); 00031 extern int verify_private_key(void); 00032 extern int generate_challenge(char **, char **, RSA *); 00033 extern int get_randomness(unsigned char *, int); 00034 #endif 00035 00036 #endif /* INCLUDED_rsa_h */ 00037