• Home
  • Raw
  • Download

Lines Matching refs:mbuf

901     char *mbuf = NULL, *proxystr = NULL, *connectstr = NULL, *bindstr = NULL;  in s_client_main()  local
1012 mbuf = app_malloc(BUFSIZZ, "mbuf"); in s_client_main()
2209 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2210 } while (mbuf_len > 3 && mbuf[3] == '-'); in s_client_main()
2223 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2224 if (strstr(mbuf, "STARTTLS")) in s_client_main()
2226 } while (mbuf_len > 3 && mbuf[3] == '-'); in s_client_main()
2240 BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2255 BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2261 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2262 if (strstr(mbuf, "STARTTLS")) in s_client_main()
2265 while (mbuf_len > 3 && mbuf[0] != '.'); in s_client_main()
2284 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2286 …while (mbuf_len > 3 && (!isdigit(mbuf[0]) || !isdigit(mbuf[1]) || !isdigit(mbuf[2]) || mbuf[3] != … in s_client_main()
2303 seen = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2308 mbuf[seen] = '\0'; in s_client_main()
2310 (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") in s_client_main()
2311 && !strstr(mbuf, in s_client_main()
2314 seen = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2319 mbuf[seen] = '\0'; in s_client_main()
2331 mbuf[0] = '\0'; in s_client_main()
2351 bytes = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2352 if (bytes != 3 || memcmp(mbuf, tls_do, 3) != 0) in s_client_main()
2359 bytes = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2360 if (bytes != 6 || memcmp(mbuf, tls_follows, 6) != 0) in s_client_main()
2382 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2392 if (mbuf[8] != ' ') { in s_client_main()
2397 } else if (mbuf[9] != '2') { in s_client_main()
2399 &mbuf[9]); in s_client_main()
2406 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2452 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2453 if (mbuf_len < 1 || sscanf(mbuf, "%*s %d", &numeric) != 1) in s_client_main()
2458 && strstr(mbuf, "STARTTLS") != NULL) { in s_client_main()
2459 BIO_printf(bio_err, "STARTTLS not supported: %s", mbuf); in s_client_main()
2583 BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2589 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2590 if (strstr(mbuf, "STARTTLS")) in s_client_main()
2592 } while (mbuf_len > 1 && mbuf[0] != '.'); in s_client_main()
2601 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2606 mbuf[mbuf_len] = '\0'; in s_client_main()
2607 if (strstr(mbuf, "382") == NULL) { in s_client_main()
2608 BIO_printf(bio_err, "STARTTLS failed: %s", mbuf); in s_client_main()
2621 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2626 if (mbuf_len > 1 && mbuf[0] == '"') { in s_client_main()
2627 make_uppercase(mbuf); in s_client_main()
2628 if (strncmp(mbuf, "\"STARTTLS\"", 10) == 0) in s_client_main()
2631 } while (mbuf_len > 1 && mbuf[0] == '"'); in s_client_main()
2640 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2645 mbuf[mbuf_len] = '\0'; in s_client_main()
2647 BIO_printf(bio_err, "STARTTLS failed: %s", mbuf); in s_client_main()
2654 strncpy(sbuf, mbuf, 2); in s_client_main()
2657 BIO_printf(bio_err, "STARTTLS not supported: %s", mbuf); in s_client_main()
2714 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2719 result = ldap_ExtendedResponse_parse(mbuf, mbuf_len); in s_client_main()
2798 BIO_write(bio_err, mbuf, mbuf_len); in s_client_main()
3176 OPENSSL_clear_free(mbuf, BUFSIZZ); in s_client_main()