Lines Matching defs:mbuf
800 char *cbuf = NULL, *sbuf = NULL, *mbuf = NULL;
917 mbuf = app_malloc(BUFSIZZ, "mbuf");
2189 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2190 } while (mbuf_len > 3 && mbuf[3] == '-');
2203 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2204 if (strstr(mbuf, "STARTTLS"))
2206 } while (mbuf_len > 3 && mbuf[3] == '-');
2220 BIO_read(sbio, mbuf, BUFSIZZ);
2239 BIO_gets(fbio, mbuf, BUFSIZZ);
2245 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2246 if (strstr(mbuf, "STARTTLS"))
2249 while (mbuf_len > 3 && mbuf[0] != '.');
2272 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2274 while (mbuf_len > 3 && (!isdigit(mbuf[0]) || !isdigit(mbuf[1]) || !isdigit(mbuf[2]) || mbuf[3] != ' '));
2291 seen = BIO_read(sbio, mbuf, BUFSIZZ);
2296 mbuf[seen] = '\0';
2298 (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'")
2299 && !strstr(mbuf,
2302 seen = BIO_read(sbio, mbuf, BUFSIZZ);
2307 mbuf[seen] = '\0';
2319 mbuf[0] = '\0';
2339 bytes = BIO_read(sbio, mbuf, BUFSIZZ);
2340 if (bytes != 3 || memcmp(mbuf, tls_do, 3) != 0)
2347 bytes = BIO_read(sbio, mbuf, BUFSIZZ);
2348 if (bytes != 6 || memcmp(mbuf, tls_follows, 6) != 0)
2391 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2392 if (mbuf_len < 1 || sscanf(mbuf, "%*s %d", &numeric) != 1)
2397 && strstr(mbuf, "STARTTLS") != NULL) {
2398 BIO_printf(bio_err, "STARTTLS not supported: %s", mbuf);
2526 BIO_gets(fbio, mbuf, BUFSIZZ);
2530 BIO_gets(fbio, mbuf, BUFSIZZ);
2532 if (strstr(mbuf, "101") != NULL) {
2535 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2536 if (strstr(mbuf, "STARTTLS"))
2538 } while (mbuf_len > 1 && mbuf[0] != '.');
2548 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ);
2553 mbuf[mbuf_len] = '\0';
2554 if (strstr(mbuf, "382") == NULL) {
2555 BIO_printf(bio_err, "STARTTLS failed: %s", mbuf);
2572 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
2577 if (mbuf_len > 1 && mbuf[0] == '"') {
2578 make_uppercase(mbuf);
2579 if (strncmp(mbuf, "\"STARTTLS\"", 10) == 0)
2582 } while (mbuf_len > 1 && mbuf[0] == '"');
2591 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ);
2596 mbuf[mbuf_len] = '\0';
2598 BIO_printf(bio_err, "STARTTLS failed: %s", mbuf);
2605 strncpy(sbuf, mbuf, 2);
2608 BIO_printf(bio_err, "STARTTLS not supported: %s", mbuf);
2666 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ);
2671 result = ldap_ExtendedResponse_parse(mbuf, mbuf_len);
2749 BIO_write(bio_err, mbuf, mbuf_len);
3120 OPENSSL_clear_free(mbuf, BUFSIZZ);