mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix docs related to EVP_RAND_CTX_new() that were not passing the parent
parameter. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18809)
This commit is contained in:
		
							parent
							
								
									f3090fc710
								
							
						
					
					
						commit
						0a7528cc7c
					
				|  | @ -63,7 +63,7 @@ does not. | |||
| A context for CTR DRBG can be obtained by calling: | ||||
| 
 | ||||
|  EVP_RAND *rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); | ||||
| 
 | ||||
| =head1 EXAMPLES | ||||
| 
 | ||||
|  |  | |||
|  | @ -57,7 +57,7 @@ These parameters work as described in L<EVP_RAND(3)/PARAMETERS>. | |||
| A context for HASH DRBG can be obtained by calling: | ||||
| 
 | ||||
|  EVP_RAND *rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); | ||||
| 
 | ||||
| =head1 EXAMPLES | ||||
| 
 | ||||
|  |  | |||
|  | @ -39,7 +39,7 @@ These parameters work as described in L<EVP_RAND(3)/PARAMETERS>. | |||
| A context for the seed source can be obtained by calling: | ||||
| 
 | ||||
|  EVP_RAND *rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); | ||||
| 
 | ||||
| =head1 EXAMPLES | ||||
| 
 | ||||
|  |  | |||
|  | @ -67,7 +67,7 @@ Each nonce request will return all of the bytes. | |||
| A context for a test generator can be obtained by calling: | ||||
| 
 | ||||
|  EVP_RAND *rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand); | ||||
|  EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL); | ||||
| 
 | ||||
| =head1 EXAMPLES | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue