mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
Fix openssl header inclusion
caused cbc_encrypt to be redefined by an openssl macro
This commit is contained in:
@@ -27,6 +27,12 @@
|
|||||||
#define _CRYPTO_H_
|
#define _CRYPTO_H_
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBGCRYPT
|
||||||
|
#include <gcrypt.h>
|
||||||
|
#endif
|
||||||
|
#include "libssh/wrapper.h"
|
||||||
|
|
||||||
#ifdef cbc_encrypt
|
#ifdef cbc_encrypt
|
||||||
#undef cbc_encrypt
|
#undef cbc_encrypt
|
||||||
#endif
|
#endif
|
||||||
@@ -34,11 +40,6 @@
|
|||||||
#undef cbc_decrypt
|
#undef cbc_decrypt
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBGCRYPT
|
|
||||||
#include <gcrypt.h>
|
|
||||||
#endif
|
|
||||||
#include "libssh/wrapper.h"
|
|
||||||
|
|
||||||
struct ssh_crypto_struct {
|
struct ssh_crypto_struct {
|
||||||
bignum e,f,x,k,y;
|
bignum e,f,x,k,y;
|
||||||
unsigned char session_id[SHA_DIGEST_LEN];
|
unsigned char session_id[SHA_DIGEST_LEN];
|
||||||
|
|||||||
@@ -37,10 +37,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#include "libssh/crypto.h"
|
|
||||||
#include "libssh/session.h"
|
#include "libssh/session.h"
|
||||||
#include "libssh/wrapper.h"
|
#include "libssh/wrapper.h"
|
||||||
|
#include "libssh/crypto.h"
|
||||||
uint32_t packet_decrypt_len(ssh_session session, char *crypted){
|
uint32_t packet_decrypt_len(ssh_session session, char *crypted){
|
||||||
uint32_t decrypted;
|
uint32_t decrypted;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user