Lines Matching refs:mbuf
862 char *cbuf = NULL, *sbuf = NULL, *mbuf = NULL; in s_client_main() local
988 mbuf = app_malloc(BUFSIZZ, "mbuf"); in s_client_main()
2372 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2373 } while (mbuf_len > 3 && mbuf[3] == '-'); in s_client_main()
2386 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2387 if (strstr(mbuf, "STARTTLS")) in s_client_main()
2389 } while (mbuf_len > 3 && mbuf[3] == '-'); in s_client_main()
2403 BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2422 BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2428 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2429 if (strstr(mbuf, "STARTTLS")) in s_client_main()
2432 while (mbuf_len > 3 && mbuf[0] != '.'); in s_client_main()
2455 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2457 …> 3 && (!isdigit((unsigned char)mbuf[0]) || !isdigit((unsigned char)mbuf[1]) || !isdigit((unsigned… in s_client_main()
2474 seen = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2479 mbuf[seen] = '\0'; in s_client_main()
2481 (mbuf, "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'") in s_client_main()
2482 && !strstr(mbuf, in s_client_main()
2485 seen = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2490 mbuf[seen] = '\0'; in s_client_main()
2502 mbuf[0] = '\0'; in s_client_main()
2522 bytes = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2523 if (bytes != 3 || memcmp(mbuf, tls_do, 3) != 0) in s_client_main()
2530 bytes = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2531 if (bytes != 6 || memcmp(mbuf, tls_follows, 6) != 0) in s_client_main()
2574 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2575 if (mbuf_len < 1 || sscanf(mbuf, "%*s %d", &numeric) != 1) in s_client_main()
2580 && strstr(mbuf, "STARTTLS") != NULL) { in s_client_main()
2581 BIO_printf(bio_err, "STARTTLS not supported: %s", mbuf); in s_client_main()
2709 BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2713 BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2715 if (strstr(mbuf, "101") != NULL) { in s_client_main()
2718 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2719 if (strstr(mbuf, "STARTTLS")) in s_client_main()
2721 } while (mbuf_len > 1 && mbuf[0] != '.'); in s_client_main()
2731 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2736 mbuf[mbuf_len] = '\0'; in s_client_main()
2737 if (strstr(mbuf, "382") == NULL) { in s_client_main()
2738 BIO_printf(bio_err, "STARTTLS failed: %s", mbuf); in s_client_main()
2755 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ); in s_client_main()
2760 if (mbuf_len > 1 && mbuf[0] == '"') { in s_client_main()
2761 make_uppercase(mbuf); in s_client_main()
2762 if (HAS_PREFIX(mbuf, "\"STARTTLS\"")) in s_client_main()
2765 } while (mbuf_len > 1 && mbuf[0] == '"'); in s_client_main()
2774 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2779 mbuf[mbuf_len] = '\0'; in s_client_main()
2781 BIO_printf(bio_err, "STARTTLS failed: %s", mbuf); in s_client_main()
2788 strncpy(sbuf, mbuf, 2); in s_client_main()
2791 BIO_printf(bio_err, "STARTTLS not supported: %s", mbuf); in s_client_main()
2849 mbuf_len = BIO_read(sbio, mbuf, BUFSIZZ); in s_client_main()
2854 result = ldap_ExtendedResponse_parse(mbuf, mbuf_len); in s_client_main()
2935 BIO_write(bio_err, mbuf, mbuf_len); in s_client_main()
3353 OPENSSL_clear_free(mbuf, BUFSIZZ); in s_client_main()