libssh  0.7.2
include/libssh/ecdh.h
00001 /*
00002  * This file is part of the SSH Library
00003  *
00004  * Copyright (c) 2011 by Aris Adamantiadis
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00021 #ifndef ECDH_H_
00022 #define ECDH_H_
00023 
00024 #include "config.h"
00025 
00026 #ifdef HAVE_LIBCRYPTO
00027 #ifdef HAVE_OPENSSL_ECDH_H
00028 
00029 #ifdef HAVE_ECC
00030 #define HAVE_ECDH 1
00031 #endif
00032 
00033 #endif /* HAVE_OPENSSL_ECDH_H */
00034 #endif /* HAVE_LIBCRYPTO */
00035 
00036 int ssh_client_ecdh_init(ssh_session session);
00037 int ssh_client_ecdh_reply(ssh_session session, ssh_buffer packet);
00038 
00039 #ifdef WITH_SERVER
00040 int ssh_server_ecdh_init(ssh_session session, ssh_buffer packet);
00041 #endif /* WITH_SERVER */
00042 
00043 #endif /* ECDH_H_ */