Untitled
Never
#include <stdio.h> #include <string.h> #include <err.h> #include <tls.h> int main(int argc, char *argv[]) { struct tls_config *cfg = NULL; struct tls *ctx = NULL; int writelen; char buf[BUFSIZ] = "<?xml version=\"1.0\"?> <stream:stream to=\"tilda.center\" xmlns=\"jabber:client\" xmlns:stream=\"http://etherx.jabber.org/streams\" version=\"1.0\">"; /* ** initialize libtls */ // if (tls_init() != 0) // err(1, "tls_init:"); /* ** configure libtls */ if ((cfg = tls_config_new()) == NULL) err(1, "tls_config_new:"); /* set root certificate (CA) */ if (tls_config_set_ca_file(cfg, "/etc/ssl/cert.pem") != 0) err(1, "tls_config_set_ca_file:"); /* ** initiate client context */ if ((ctx = tls_client()) == NULL) err(1, "tls_client:"); /* ** apply config to context */ if (tls_configure(ctx, cfg) != 0) err(1, "tls_configure: %s", tls_error(ctx)); /* ** connect to server */ if (tls_connect(ctx, "tilda.center", "5222") != 0) err(1, "tls_connect: %s", tls_error(ctx)); /* ** send message to server */ if ((writelen = tls_write(ctx, buf, strlen(buf))) < 0) err(1, "tls_write: %s", tls_error(ctx)); printf("sent message: [%*.*s]\n", writelen, writelen, buf); /* ** clean up all */ if (tls_close(ctx) != 0) err(1, "tls_close: %s", tls_error(ctx)); tls_free(ctx); tls_config_free(cfg); return(0); }
Raw Text
-
gyftdr sesdfg cdfgghj dxf
12 min ago
-
Licking Her Sweet Pussy And Put Thick Cock Inside! 4K
12 min ago
-
CP💎 FOLDER 💯📁 R@PED😈😏 LITTLE GIRL🍆👧💦💦
15 min ago
-
MenoPhix FAKE Hype Busted [Consumer Reports] Is MenoPhix afe?
27 min ago
-
What Can The Music Industry Teach You About Bloom Cbd Gummies
35 min ago
-
Less Reading More Sucking & Fucking feat. The Nerd Harley King - Exxxtra Small
42 min ago
-
Adult Telegram Channels
57 min ago
-
5 FitsPresso Tips for Swift Weight Loss
1 hour ago
-
What to anticipate with the consumption of Bloom CBD Gummies?
1 hour ago
-
I’m obsessed with anal, that's what makes me happy
1 hour ago