| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  | =pod | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 NAME | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-09 23:25:19 +08:00
										 |  |  | EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0, EVP_PKEY_meth_get0_info - enumerate public key methods | 
					
						
							| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | =head1 SYNOPSIS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  #include <openssl/evp.h> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-02 19:33:49 +08:00
										 |  |  | The following functions have been deprecated since OpenSSL 3.0, and can be | 
					
						
							|  |  |  | hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, | 
					
						
							|  |  |  | see L<openssl_user_macros(7)>: | 
					
						
							| 
									
										
										
										
											2020-02-13 09:00:57 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  |  size_t EVP_PKEY_meth_get_count(void); | 
					
						
							|  |  |  |  const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx); | 
					
						
							|  |  |  |  void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, | 
					
						
							|  |  |  |                               const EVP_PKEY_METHOD *meth); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 DESCRIPTION | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-13 09:00:57 +08:00
										 |  |  | All of the functions described on this page are deprecated. | 
					
						
							|  |  |  | Applications should instead use the OSSL_PROVIDER APIs. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  | EVP_PKEY_meth_count() returns a count of the number of public key methods | 
					
						
							|  |  |  | available: it includes standard methods and any methods added by the | 
					
						
							|  |  |  | application. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EVP_PKEY_meth_get0() returns the public key method B<idx>. The value of B<idx> | 
					
						
							|  |  |  | must be between zero and EVP_PKEY_meth_get_count() - 1. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EVP_PKEY_meth_get0_info() returns the public key ID (a NID) and any flags | 
					
						
							|  |  |  | associated with the public key method B<*meth>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 RETURN VALUES | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EVP_PKEY_meth_count() returns the number of available public key methods. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EVP_PKEY_meth_get0() return a public key method or B<NULL> if B<idx> is | 
					
						
							|  |  |  | out of range. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EVP_PKEY_meth_get0_info() does not return a value. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =head1 SEE ALSO | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | L<EVP_PKEY_new(3)> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-13 09:00:57 +08:00
										 |  |  | =head1 HISTORY | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | All of these functions were deprecated in OpenSSL 3.0. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  | =head1 COPYRIGHT | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-06 20:22:30 +08:00
										 |  |  | Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-06 21:04:44 +08:00
										 |  |  | Licensed under the Apache License 2.0 (the "License").  You may not use | 
					
						
							| 
									
										
										
										
											2017-07-26 00:48:26 +08:00
										 |  |  | this file except in compliance with the License.  You can obtain a copy | 
					
						
							|  |  |  | in the file LICENSE in the source distribution or at | 
					
						
							|  |  |  | L<https://www.openssl.org/source/license.html>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | =cut |