From a4c0236316056a6ef3b6c885f523f0f0da8cdc23 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 20 Nov 2022 11:02:46 +0100 Subject: Get env based credential parsing to xmpp.c --- xmpp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmpp.c b/xmpp.c index d9645d1..be677fc 100644 --- a/xmpp.c +++ b/xmpp.c @@ -1,11 +1,17 @@ +#include #include void net_init(void) { printf("net_init()\n"); + + char* user_str = getenv("LIMOX_USER"); + char* pwd_str = getenv("LIMOX_PWD"); + + printf("Trying to connect as '%s' with '%s'.\n", user_str, pwd_str); } void net_quit(void) -- cgit v1.2.3-70-g09d2