1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-05 20:55:46 +03:00
was only a misplaced #include.

I hate C


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@136 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2008-03-03 21:11:30 +00:00
parent 21c547689a
commit 9b5f893513
2 changed files with 5 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ MA 02111-1307, USA. */
#ifndef _LIBSSH_PRIV_H #ifndef _LIBSSH_PRIV_H
#define _LIBSSH_PRIV_H #define _LIBSSH_PRIV_H
#include "config.h" #include "libssh/config.h"
#include "libssh/libssh.h" #include "libssh/libssh.h"
/* Debugging constants */ /* Debugging constants */

View File

@@ -39,8 +39,9 @@ MA 02111-1307, USA. */
#include <stdlib.h> #include <stdlib.h>
#include <netdb.h> #include <netdb.h>
#include <string.h> #include <string.h>
#include "libssh/crypto.h"
#include "libssh/priv.h" #include "libssh/priv.h"
#include "libssh/crypto.h"
#ifdef HAVE_LIBCRYPTO #ifdef HAVE_LIBCRYPTO
#include <openssl/rand.h> #include <openssl/rand.h>
@@ -452,8 +453,8 @@ void generate_session_keys(SSH_SESSION *session){
#ifdef DEBUG_CRYPTO #ifdef DEBUG_CRYPTO
ssh_print_hexa("encrypt IV",session->next_crypto->encryptIV,SHA_DIGEST_LEN); ssh_print_hexa("encrypt IV",session->next_crypto->encryptIV,SHA_DIGEST_LEN);
ssh_print_hexa("decrypt IV",session->next_crypto->decryptIV,SHA_DIGEST_LEN); ssh_print_hexa("decrypt IV",session->next_crypto->decryptIV,SHA_DIGEST_LEN);
ssh_print_hexa("encryption key",session->next_crypto->encryptkey,16); ssh_print_hexa("encryption key",session->next_crypto->encryptkey,session->next_crypto->out_cipher->keysize);
ssh_print_hexa("decryption key",session->next_crypto->decryptkey,16); ssh_print_hexa("decryption key",session->next_crypto->decryptkey,session->next_crypto->in_cipher->keysize);
ssh_print_hexa("Encryption MAC",session->next_crypto->encryptMAC,SHA_DIGEST_LEN); ssh_print_hexa("Encryption MAC",session->next_crypto->encryptMAC,SHA_DIGEST_LEN);
ssh_print_hexa("Decryption MAC",session->next_crypto->decryptMAC,20); ssh_print_hexa("Decryption MAC",session->next_crypto->decryptMAC,20);
#endif #endif