mirror of https://github.com/openssl/openssl.git
				
				
				
			CORE: expose the property parsers and checker to the rest of the libraries
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10394)
This commit is contained in:
		
							parent
							
								
									742496f130
								
							
						
					
					
						commit
						1793d270f3
					
				|  | @ -11,7 +11,6 @@ | |||
| #include <openssl/crypto.h> | ||||
| #include "internal/property.h" | ||||
| 
 | ||||
| typedef struct ossl_property_list_st OSSL_PROPERTY_LIST; | ||||
| typedef int OSSL_PROPERTY_IDX; | ||||
| 
 | ||||
| /* Property string functions */ | ||||
|  | @ -23,17 +22,9 @@ OSSL_PROPERTY_IDX ossl_property_value(OPENSSL_CTX *ctx, const char *s, | |||
| /* Property list functions */ | ||||
| void ossl_property_free(OSSL_PROPERTY_LIST *p); | ||||
| int ossl_property_has_optional(const OSSL_PROPERTY_LIST *query); | ||||
| int ossl_property_match_count(const OSSL_PROPERTY_LIST *query, | ||||
|                               const OSSL_PROPERTY_LIST *defn); | ||||
| OSSL_PROPERTY_LIST *ossl_property_merge(const OSSL_PROPERTY_LIST *a, | ||||
|                                         const OSSL_PROPERTY_LIST *b); | ||||
| 
 | ||||
| /* Property definition functions */ | ||||
| OSSL_PROPERTY_LIST *ossl_parse_property(OPENSSL_CTX *ctx, const char *s); | ||||
| 
 | ||||
| /* Property query functions */ | ||||
| OSSL_PROPERTY_LIST *ossl_parse_query(OPENSSL_CTX *ctx, const char *s); | ||||
| 
 | ||||
| /* Property definition cache functions */ | ||||
| OSSL_PROPERTY_LIST *ossl_prop_defn_get(OPENSSL_CTX *ctx, const char *prop); | ||||
| int ossl_prop_defn_set(OPENSSL_CTX *ctx, const char *prop, | ||||
|  |  | |||
|  | @ -14,10 +14,19 @@ | |||
| #include "internal/cryptlib.h" | ||||
| 
 | ||||
| typedef struct ossl_method_store_st OSSL_METHOD_STORE; | ||||
| typedef struct ossl_property_list_st OSSL_PROPERTY_LIST; | ||||
| 
 | ||||
| /* Initialisation */ | ||||
| int ossl_property_parse_init(OPENSSL_CTX *ctx); | ||||
| 
 | ||||
| /* Property definition parser */ | ||||
| OSSL_PROPERTY_LIST *ossl_parse_property(OPENSSL_CTX *ctx, const char *defn); | ||||
| /* Property query parser */ | ||||
| OSSL_PROPERTY_LIST *ossl_parse_query(OPENSSL_CTX *ctx, const char *s); | ||||
| /* Property checker of query vs definition */ | ||||
| int ossl_property_match_count(const OSSL_PROPERTY_LIST *query, | ||||
|                               const OSSL_PROPERTY_LIST *defn); | ||||
| 
 | ||||
| /* Implementation store functions */ | ||||
| OSSL_METHOD_STORE *ossl_method_store_new(OPENSSL_CTX *ctx); | ||||
| void ossl_method_store_free(OSSL_METHOD_STORE *store); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue