diff options
author | Julian Ospald <hasufell@posteo.de> | 2016-03-12 20:26:44 +0300 |
---|---|---|
committer | Julian Ospald <hasufell@posteo.de> | 2016-03-12 20:46:26 +0300 |
commit | f2c56756ac6fa3990ea94a2e92ec8110cbbe398d (patch) | |
tree | 6932eee0ec51d47a830bd68c41dc0a9575245c20 | |
parent | 5a5bebab831618b658ffdeb418b8b2e430a18dd4 (diff) |
Add mbedtls/openssl as STEAM_CRYPT_BACKEND
Also fix the ifdef check to include linux systems.
-rw-r--r-- | steam-mobile/Makefile | 6 | ||||
-rw-r--r-- | steam-mobile/steam_rsa.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/steam-mobile/Makefile b/steam-mobile/Makefile index 3f66ee1..212e6f8 100644 --- a/steam-mobile/Makefile +++ b/steam-mobile/Makefile @@ -21,6 +21,12 @@ ifeq ($(STEAM_CRYPT_BACKEND), nss) else ifeq ($(STEAM_CRYPT_BACKEND), gcrypt) LIBPURPLE_CFLAGS += $(shell libgcrypt-config --cflags) -DUSE_GCRYPT_CRYPTO LIBPURPLE_LIBS += $(shell libgcrypt-config --libs) +else ifeq ($(STEAM_CRYPT_BACKEND), mbedtls) + LIBPURPLE_CFLAGS += -DUSE_MBEDTLS_CRYPTO + LIBPURPLE_LIBS += -lmbedtls -lmbedcrypto -lmbedx509 +else ifeq ($(STEAM_CRYPT_BACKEND), openssl) + LIBPURPLE_CFLAGS += $(shell ${PKG_CONFIG} --cflags openssl) -DUSE_OPENSSL_CRYPTO + LIBPURPLE_LIBS += $(shell ${PKG_CONFIG} --libs openssl) endif STEAM_SOURCES = \ diff --git a/steam-mobile/steam_rsa.c b/steam-mobile/steam_rsa.c index c14196e..650baa9 100644 --- a/steam-mobile/steam_rsa.c +++ b/steam-mobile/steam_rsa.c @@ -9,7 +9,7 @@ password=<base64rsaencryptedpwd>&username=<steamusername>&emailauth=&captchagid= */
-#if defined USE_OPENSSL_CRYPTO && !(defined __APPLE__ || defined __FreeBSD__ || defined __OpenBSD__)
+#if defined USE_OPENSSL_CRYPTO && !(defined __APPLE__ || defined __unix__)
# undef USE_OPENSSL_CRYPTO
#endif
|