Lines Matching refs:srv
27 rc = attempt_chroot_drop(srv);
32 - if(srv->use_ssl) {
33 - rc = Server_init_rng(srv);
34 - check(rc == 0, "Failed to initialize rng for server %s", bdata(srv->uuid));
44 @@ -149,35 +149,45 @@ static int Server_load_ciphers(Server *srv, bstring ssl_ciphers_val)
58 int Server_init_rng(Server *srv)
64 - mbedtls_entropy_init( &srv->entropy );
68 - rc = mbedtls_entropy_func(&srv->entropy, buf, MBEDTLS_ENTROPY_BLOCK_SIZE);
76 - mbedtls_entropy_func, &srv->entropy, NULL, 0);
80 srv->rng_func = mbedtls_ctr_drbg_random;
81 srv->rng_ctx = ctx;
90 srv->rng_func = mbedtls_havege_random;
91 srv->rng_ctx = ctx;
104 - // rc = Server_init_rng(srv);
108 + rc = Server_init_rng(srv);
113 srv->chroot = bstrcpy(chroot); check_mem(srv->chroot);