|
Packit Service |
31306d |
/*
|
|
Packit Service |
31306d |
* This file is part of the SSH Library
|
|
Packit Service |
31306d |
*
|
|
Packit Service |
31306d |
* Copyright (c) 2011 by Aris Adamantiadis
|
|
Packit Service |
31306d |
*
|
|
Packit Service |
31306d |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
31306d |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
31306d |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
31306d |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
31306d |
*
|
|
Packit Service |
31306d |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
31306d |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
31306d |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
31306d |
* Lesser General Public License for more details.
|
|
Packit Service |
31306d |
*
|
|
Packit Service |
31306d |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
31306d |
* License along with this library; if not, write to the Free Software
|
|
Packit Service |
31306d |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit Service |
31306d |
*/
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#ifndef ECDH_H_
|
|
Packit Service |
31306d |
#define ECDH_H_
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#include "config.h"
|
|
Packit Service |
31306d |
#include "libssh/callbacks.h"
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#ifdef HAVE_LIBCRYPTO
|
|
Packit Service |
31306d |
#ifdef HAVE_OPENSSL_ECDH_H
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#ifdef HAVE_ECC
|
|
Packit Service |
31306d |
#define HAVE_ECDH 1
|
|
Packit Service |
31306d |
#endif
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#endif /* HAVE_OPENSSL_ECDH_H */
|
|
Packit Service |
31306d |
#endif /* HAVE_LIBCRYPTO */
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#ifdef HAVE_GCRYPT_ECC
|
|
Packit Service |
31306d |
#define HAVE_ECDH 1
|
|
Packit Service |
31306d |
#endif
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#ifdef HAVE_LIBMBEDCRYPTO
|
|
Packit Service |
31306d |
#define HAVE_ECDH 1
|
|
Packit Service |
31306d |
#endif
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
extern struct ssh_packet_callbacks_struct ssh_ecdh_client_callbacks;
|
|
Packit Service |
31306d |
/* Backend-specific functions. */
|
|
Packit Service |
31306d |
int ssh_client_ecdh_init(ssh_session session);
|
|
Packit Service |
31306d |
int ecdh_build_k(ssh_session session);
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#ifdef WITH_SERVER
|
|
Packit Service |
31306d |
extern struct ssh_packet_callbacks_struct ssh_ecdh_server_callbacks;
|
|
Packit Service |
31306d |
void ssh_server_ecdh_init(ssh_session session);
|
|
Packit Service |
31306d |
SSH_PACKET_CALLBACK(ssh_packet_server_ecdh_init);
|
|
Packit Service |
31306d |
#endif /* WITH_SERVER */
|
|
Packit Service |
31306d |
|
|
Packit Service |
31306d |
#endif /* ECDH_H_ */
|