summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-11-20 11:02:46 +0100
committerxengineering <me@xengineering.eu>2022-11-20 11:02:46 +0100
commita4c0236316056a6ef3b6c885f523f0f0da8cdc23 (patch)
tree5832a143cfa123830537b47716bf80071c48adfa
parentb377b8aa01f32fa5e6d59a64c84dfe8b50a6e63c (diff)
downloadlimox-a4c0236316056a6ef3b6c885f523f0f0da8cdc23.tar
limox-a4c0236316056a6ef3b6c885f523f0f0da8cdc23.tar.zst
limox-a4c0236316056a6ef3b6c885f523f0f0da8cdc23.zip
Get env based credential parsing to xmpp.c
-rw-r--r--xmpp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmpp.c b/xmpp.c
index d9645d1..be677fc 100644
--- a/xmpp.c
+++ b/xmpp.c
@@ -1,11 +1,17 @@
+#include <stdlib.h>
#include <stdio.h>
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)