Ver código fonte

* Update symbols to match latest API

Bryan Drewery 15 anos atrás
pai
commit
d906f930a4
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      src/libcrypto.h
  2. 2 2
      src/libssl.h

+ 1 - 1
src/libcrypto.h

@@ -14,7 +14,7 @@
 #include "dl.h"
 #include <bdlib/src/String.h>
 
-typedef void (*AES_cbc_encrypt_t)(const unsigned char*, unsigned char*, const unsigned long, const AES_KEY*, unsigned char*, const int);
+typedef void (*AES_cbc_encrypt_t)(const unsigned char*, unsigned char*, const size_t, const AES_KEY*, unsigned char*, const int);
 typedef void (*AES_decrypt_t)(const unsigned char*, unsigned char*, const AES_KEY*);
 typedef void (*AES_encrypt_t)(const unsigned char*, unsigned char*, const AES_KEY*);
 typedef int (*AES_set_decrypt_key_t)(const unsigned char*, const int, AES_KEY*);

+ 2 - 2
src/libssl.h

@@ -20,14 +20,14 @@ typedef int (*SSL_connect_t)(SSL*);
 typedef int (*SSL_read_t)(SSL*, void*, int);
 typedef int (*SSL_write_t)(SSL*, const void*, int);
 typedef SSL* (*SSL_new_t)(SSL_CTX*);
-typedef SSL_METHOD* (*SSLv23_client_method_t)(void);
+typedef const SSL_METHOD* (*SSLv23_client_method_t)(void);
 typedef int (*SSL_shutdown_t)(SSL*);
 typedef int (*SSL_set_fd_t)(SSL*, int);
 typedef int (*SSL_pending_t)(const SSL*);
 typedef void (*SSL_load_error_strings_t)(void);
 typedef int (*SSL_library_init_t)(void);
 typedef void (*SSL_CTX_free_t)(SSL_CTX*);
-typedef SSL_CTX* (*SSL_CTX_new_t)(SSL_METHOD*);
+typedef SSL_CTX* (*SSL_CTX_new_t)(const SSL_METHOD*);
 
 int load_ssl();
 int unload_ssl();