MCPcopy Create free account
hub / github.com/apache/httpd / md_rand_bytes

Function md_rand_bytes

modules/md/md_crypt.c:170–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170apr_status_t md_rand_bytes(unsigned char *buf, apr_size_t len, apr_pool_t *p)
171{
172 apr_status_t rv;
173
174 if (len > INT_MAX) {
175 return APR_ENOTIMPL;
176 }
177 if (APR_SUCCESS == (rv = md_crypt_init(p))) {
178 RAND_bytes((unsigned char*)buf, (int)len);
179 }
180 return rv;
181}
182
183typedef struct {
184 const char *pass_phrase;

Callers 5

mk_x509Function · 0.85
init_store_fileFunction · 0.85
next_run_defaultFunction · 0.85
md_job_delay_on_errorsFunction · 0.85
acme_get_ariFunction · 0.85

Calls 1

md_crypt_initFunction · 0.85

Tested by

no test coverage detected