Skip to content

Commit

Permalink
0.2.50.2
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Mar 13, 2021
1 parent 05b0f6a commit 9518719
Show file tree
Hide file tree
Showing 33 changed files with 24 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.2.50.2
- make sslsym compatible with openSSL 1.1.x

0.2.50.1
- noflush properly send silent frames at the right speed

Expand Down
2 changes: 1 addition & 1 deletion aircast/src/aircast.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "config_cast.h"
#include "sslsym.h"

#define VERSION "v0.2.50.1"" ("__DATE__" @ "__TIME__")"
#define VERSION "v0.2.50.2"" ("__DATE__" @ "__TIME__")"

#define DISCOVERY_TIME 20
#define MEDIA_VOLUME 0.5
Expand Down
2 changes: 1 addition & 1 deletion airupnp/src/airupnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "log_util.h"
#include "sslsym.h"

#define VERSION "v0.2.50.1"" ("__DATE__" @ "__TIME__")"
#define VERSION "v0.2.50.2"" ("__DATE__" @ "__TIME__")"

#define AV_TRANSPORT "urn:schemas-upnp-org:service:AVTransport"
#define RENDERING_CTRL "urn:schemas-upnp-org:service:RenderingControl"
Expand Down
Binary file modified bin/aircast-aarch64
Binary file not shown.
Binary file modified bin/aircast-aarch64-static
Binary file not shown.
Binary file modified bin/aircast-arm
Binary file not shown.
Binary file modified bin/aircast-arm-static
Binary file not shown.
Binary file modified bin/aircast-arm5
Binary file not shown.
Binary file modified bin/aircast-bsd-x64
Binary file not shown.
Binary file modified bin/aircast-bsd-x64-static
Binary file not shown.
Binary file modified bin/aircast-i86pc-solaris
Binary file not shown.
Binary file modified bin/aircast-osx-multi
Binary file not shown.
Binary file modified bin/aircast-ppc
Binary file not shown.
Binary file modified bin/aircast-ppc-static
Binary file not shown.
Binary file modified bin/aircast-win.exe
Binary file not shown.
Binary file modified bin/aircast-x86
Binary file not shown.
Binary file modified bin/aircast-x86-64
Binary file not shown.
Binary file modified bin/airupnp-aarch64
Binary file not shown.
Binary file modified bin/airupnp-aarch64-static
Binary file not shown.
Binary file modified bin/airupnp-arm
Binary file not shown.
Binary file modified bin/airupnp-arm-static
Binary file not shown.
Binary file modified bin/airupnp-arm5
Binary file not shown.
Binary file modified bin/airupnp-bsd-x64
Binary file not shown.
Binary file modified bin/airupnp-i86pc-solaris
Binary file not shown.
Binary file modified bin/airupnp-osx-multi
Binary file not shown.
Binary file modified bin/airupnp-ppc
Binary file not shown.
Binary file modified bin/airupnp-ppc-static
Binary file not shown.
Binary file modified bin/airupnp-win.exe
Binary file not shown.
Binary file modified bin/airupnp-x86
Binary file not shown.
Binary file modified bin/airupnp-x86-64
Binary file not shown.
Binary file modified bin/airupnp-x86-64-static
Binary file not shown.
Binary file modified bin/airupnp-x86-static
Binary file not shown.
27 changes: 19 additions & 8 deletions tools/sslsym.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ ret fn(P(n,__VA_ARGS__)) { \
return (shim_##fn)(V(n,__VA_ARGS__)); \
}

#define SYMSHIMNULL(fn, ret, n, ...) \
static ret (*shim_##fn)(P(n,__VA_ARGS__))

#else

#define SYMDECL(fn, ret, n, ...)
#define SYMSHIMNULL(fn, ret, n, ...)

#define SYMSHIMDECL(fn, ret, n, ...) \
ret fn(P(n,__VA_ARGS__)) { \
Expand All @@ -101,6 +105,7 @@ static int shim_RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {
SYMSHIMDECL(RSA_set0_key, int, 4, RSA*, r, BIGNUM*, n, BIGNUM*, e, BIGNUM*, d);
#else
SYMDECL(RSA_set0_key, int, 4, RSA*, r, BIGNUM*, n, BIGNUM*, e, BIGNUM*, d);
SYMSHIMNULL(RSA_set0_key, int, 4, RSA*, r, BIGNUM*, n, BIGNUM*, e, BIGNUM*, d);
#endif

#ifndef LINKALL
Expand Down Expand Up @@ -143,14 +148,20 @@ static char *LIBCRYPTO[] = {
#define SYMLOAD(h, fn) dlsym_##fn = dlsym(h, #fn)
#endif

#define SHIMSET(fn) if (!SYM(fn)) SYM(fn) = &(shim_##fn)
#define SHIMSET(fn) if (!SYM(fn)) SYM(fn) = shim_##fn

#ifndef SSLv23_client_method
#define _SSLv23_client_method SSLv23_client_method
#endif
#ifndef SSL_library_init
#define _SSL_library_init SSL_library_init
#endif
SYMDECL(_SSLv23_client_method, const SSL_METHOD*, 0);
SYMDECL(_SSL_library_init, int, 0);
SYMDECL(TLS_client_method, const SSL_METHOD*, 0);
SYMDECL(SSL_read, int, 3, SSL*, s, void*, buf, int, len);
SYMDECL(SSL_write, int, 3, SSL*, s, const void*, buf, int, len);
SYMDECL(SSLv23_client_method, const SSL_METHOD*, 0);
SYMDECL(TLS_client_method, const SSL_METHOD*, 0);
SYMDECL(OpenSSL_version_num, unsigned long, 0);
SYMDECL(SSL_library_init, int, 0);
SYMDECL(SSL_CTX_set_cipher_list, int, 2, SSL_CTX *, ctx, const char*, str);
SYMDECL(SSL_CTX_new, SSL_CTX*, 1, const SSL_METHOD *, meth);
SYMDECL(SSL_CTX_ctrl, long, 4, SSL_CTX *, ctx, int, cmd, long, larg, void*, parg);
Expand Down Expand Up @@ -242,10 +253,10 @@ bool load_ssl_symbols(void) {
SYMLOAD(SSLhandle, SSL_read);
SYMLOAD(SSLhandle, SSL_write);
SYMLOAD(SSLhandle, SSL_pending);
SYMLOAD(SSLhandle, SSLv23_client_method);
SYMLOAD(SSLhandle, TLS_client_method);
SYMLOAD(SSLhandle, SSL_library_init);
SYMLOAD(SSLhandle, OpenSSL_version_num);
SYMLOAD(SSLhandle, _SSLv23_client_method);
SYMLOAD(SSLhandle, _SSL_library_init);

SYMLOAD(CRYPThandle, RAND_seed);
SYMLOAD(CRYPThandle, RAND_bytes);
Expand All @@ -271,8 +282,8 @@ bool load_ssl_symbols(void) {
SYMLOAD(CRYPThandle, PEM_read_bio_RSAPrivateKey);

// managed deprecated functions
if (!SYM(SSLv23_client_method)) SYM(SSLv23_client_method) = SYM(TLS_client_method);
if (!SYM(SSL_library_init)) SYM(SSL_library_init) = λ
if (!SYM(_SSLv23_client_method)) SYM(_SSLv23_client_method) = SYM(TLS_client_method);
if (!SYM(_SSL_library_init)) SYM(_SSL_library_init) = lambda;

// manage mandatory new functions
SHIMSET(RSA_set0_key);
Expand Down

0 comments on commit 9518719

Please sign in to comment.