Lines Matching refs:serverinfo

591 static int serverinfo_find_extension(const unsigned char *serverinfo,  in serverinfo_find_extension()  argument
601 if (serverinfo == NULL || serverinfo_length == 0) in serverinfo_find_extension()
604 if (!PACKET_buf_init(&pkt, serverinfo, serverinfo_length)) in serverinfo_find_extension()
658 const unsigned char *serverinfo = NULL; in serverinfoex_srv_add_cb() local
672 if ((ssl_get_server_cert_serverinfo(sc, &serverinfo, in serverinfoex_srv_add_cb()
675 int retval = serverinfo_find_extension(serverinfo, serverinfo_length, in serverinfoex_srv_add_cb()
703 const unsigned char *serverinfo, in serverinfo_process_buffer() argument
708 if (serverinfo == NULL || serverinfo_length == 0) in serverinfo_process_buffer()
714 if (!PACKET_buf_init(&pkt, serverinfo, serverinfo_length)) in serverinfo_process_buffer()
774 unsigned char *serverinfo) in extension_append() argument
780 serverinfo[0] = 0; in extension_append()
781 serverinfo[1] = 0; in extension_append()
782 serverinfo[2] = (SYNTHV1CONTEXT >> 8) & 0xff; in extension_append()
783 serverinfo[3] = SYNTHV1CONTEXT & 0xff; in extension_append()
786 memcpy(serverinfo + contextoff, extension, extension_length); in extension_append()
790 const unsigned char *serverinfo, in SSL_CTX_use_serverinfo_ex() argument
795 if (ctx == NULL || serverinfo == NULL || serverinfo_length == 0) { in SSL_CTX_use_serverinfo_ex()
813 extension_append(SSL_SERVERINFOV1, serverinfo, serverinfo_length, sinfo); in SSL_CTX_use_serverinfo_ex()
821 if (!serverinfo_process_buffer(version, serverinfo, serverinfo_length, in SSL_CTX_use_serverinfo_ex()
830 new_serverinfo = OPENSSL_realloc(ctx->cert->key->serverinfo, in SSL_CTX_use_serverinfo_ex()
834 ctx->cert->key->serverinfo = new_serverinfo; in SSL_CTX_use_serverinfo_ex()
835 memcpy(ctx->cert->key->serverinfo, serverinfo, serverinfo_length); in SSL_CTX_use_serverinfo_ex()
842 if (!serverinfo_process_buffer(version, serverinfo, serverinfo_length, in SSL_CTX_use_serverinfo_ex()
850 int SSL_CTX_use_serverinfo(SSL_CTX *ctx, const unsigned char *serverinfo, in SSL_CTX_use_serverinfo() argument
853 return SSL_CTX_use_serverinfo_ex(ctx, SSL_SERVERINFOV1, serverinfo, in SSL_CTX_use_serverinfo()
859 unsigned char *serverinfo = NULL; in SSL_CTX_use_serverinfo_file() local
942 tmp = OPENSSL_realloc(serverinfo, serverinfo_length + append_length); in SSL_CTX_use_serverinfo_file()
945 serverinfo = tmp; in SSL_CTX_use_serverinfo_file()
947 serverinfo + serverinfo_length); in SSL_CTX_use_serverinfo_file()
958 ret = SSL_CTX_use_serverinfo_ex(ctx, SSL_SERVERINFOV2, serverinfo, in SSL_CTX_use_serverinfo_file()
965 OPENSSL_free(serverinfo); in SSL_CTX_use_serverinfo_file()