Lines Matching defs:buf

254 static int ebcdic_gets(BIO *bp, char *buf, int size);
379 static int ebcdic_gets(BIO *bp, char *buf, int size)
386 /* return(BIO_gets(bp->next_bio,buf,size));*/
388 ret = ebcdic_read(bp, &buf[i], 1);
391 else if (buf[i] == '\n') {
397 buf[i] = '\0';
2328 char *buf = NULL;
2347 buf = app_malloc(bufsize, "server buffer");
2477 edret = SSL_read_early_data(con, buf, bufsize, &readbytes);
2498 raw_write_stdout(buf, (unsigned int)readbytes);
2576 i = raw_read_stdin(buf, bufsize / 2);
2580 if (buf[j] == '\n')
2583 buf[j + lf_num] = buf[j];
2584 if (buf[j] == '\n') {
2587 buf[j + lf_num] = '\r';
2592 i = raw_read_stdin(buf, bufsize);
2596 if ((i <= 0) || (buf[0] == 'Q')) {
2604 if ((i <= 0) || (buf[0] == 'q')) {
2614 if ((buf[0] == 'r') && ((buf[1] == '\n') || (buf[1] == '\r'))) {
2621 if ((buf[0] == 'R') && ((buf[1] == '\n') || (buf[1] == '\r'))) {
2631 if ((buf[0] == 'K' || buf[0] == 'k')
2632 && ((buf[1] == '\n') || (buf[1] == '\r'))) {
2633 SSL_key_update(con, buf[0] == 'K' ?
2641 if (buf[0] == 'c' && ((buf[1] == '\n') || (buf[1] == '\r'))) {
2654 if (buf[0] == 'P') {
2658 if (buf[0] == 'S') {
2663 ebcdic2ascii(buf, buf, i);
2675 k = SSL_write(con, &(buf[l]), (unsigned int)i);
2682 k = SSL_write(con, &(buf[l]), (unsigned int)i);
2761 i = SSL_read(con, (char *)buf, bufsize);
2768 i = SSL_read(con, (char *)buf, bufsize);
2774 ascii2ebcdic(buf, buf, i);
2776 raw_write_stdout(buf, (unsigned int)i);
2818 OPENSSL_clear_free(buf, bufsize);
2947 char buf[BUFSIZ];
2968 if (SSL_get_shared_ciphers(con, buf, sizeof(buf)) != NULL)
2969 BIO_printf(bio_s_out, "Shared ciphers:%s\n", buf);
3035 char *buf = NULL;
3059 buf = app_malloc(bufsize + 1, "server www buffer");
3139 i = BIO_gets(io, buf, bufsize + 1);
3166 if (((www == 1) && (strncmp("GET ", buf, 4) == 0)) ||
3167 ((www == 2) && (strncmp("GET /stats ", buf, 11) == 0))) {
3173 if (www == 1 && strncmp("GET /reneg", buf, 10) == 0) {
3174 if (strncmp("GET /renegcert", buf, 14) == 0)
3204 BIO_gets(io, buf, bufsize + 1);
3253 p = SSL_get_shared_ciphers(con, buf, bufsize);
3298 && (strncmp("GET /", buf, 5) == 0)) {
3305 p = &(buf[5]);
3430 i = BIO_read(file, buf, bufsize);
3450 k = BIO_write(io, &(buf[j]), i - j);
3483 OPENSSL_free(buf);
3491 char *buf = NULL;
3502 buf = app_malloc(bufsize + 1, "server rev buffer");
3587 i = BIO_gets(io, buf, bufsize + 1);
3613 char *p = buf + i - 1;
3618 if (!s_ign_eof && (i == 5) && (strncmp(buf, "CLOSE", 5) == 0)) {
3623 BUF_reverse((unsigned char *)buf, NULL, i);
3624 buf[i] = '\n';
3625 BIO_write(io, buf, i + 1);
3641 OPENSSL_free(buf);