Another night's work - move to ECDH + AES256 from RSA pubkey
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#ifndef _UTIL_H_
|
||||
#define _UTIL_H
|
||||
#define _UTIL_H_
|
||||
|
||||
#include "rlocs.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <openssl/sha.h>
|
||||
|
||||
#define info(msg, ...) { fprintf( stdout, msg, ##__VA_ARGS__ ) ; fprintf( stdout, "\n" ); }
|
||||
#define warn(msg, ...) { fprintf( stderr, msg, ##__VA_ARGS__ ) ; fprintf( stderr, "\n" ); }
|
||||
|
||||
@@ -31,6 +35,8 @@ int session_setup( struct session *session, char *config_file, char *listen_if,
|
||||
int session_upgrade_rlocs( struct session *session, int argc, char** args );
|
||||
void session_teardown( struct session *session );
|
||||
|
||||
int sha256sum( unsigned char *src, size_t src_len, unsigned char dst[SHA256_DIGEST_LENGTH] );
|
||||
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user