diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-05-19 11:38:23 +0200 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2022-05-21 21:49:54 +0200 |
commit | b00cf0e790661636e1df1026554f712cc513592d (patch) | |
tree | 34301856db5ea9e1f088607241746bfbc3be0f85 /doc | |
parent | dab5098eacb9e264c32a33332ba047f234a3de68 (diff) | |
download | openssl-b00cf0e790661636e1df1026554f712cc513592d.tar.gz |
Drop ossl_namemap_add_name_n() and simplify ossl_namemap_add_names()
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18341)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/internal/man3/ossl_namemap_new.pod | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/doc/internal/man3/ossl_namemap_new.pod b/doc/internal/man3/ossl_namemap_new.pod index ff247e87b0..7f4940fc93 100644 --- a/doc/internal/man3/ossl_namemap_new.pod +++ b/doc/internal/man3/ossl_namemap_new.pod @@ -3,7 +3,7 @@ =head1 NAME ossl_namemap_new, ossl_namemap_free, ossl_namemap_stored, ossl_namemap_empty, -ossl_namemap_add_name, ossl_namemap_add_name_n, ossl_namemap_add_names, +ossl_namemap_add_name, ossl_namemap_add_names, ossl_namemap_name2num, ossl_namemap_name2num_n, ossl_namemap_doall_names - internal number E<lt>-E<gt> name map @@ -19,8 +19,6 @@ ossl_namemap_doall_names int ossl_namemap_empty(OSSL_NAMEMAP *namemap); int ossl_namemap_add_name(OSSL_NAMEMAP *namemap, int number, const char *name); - int ossl_namemap_add_name_n(OSSL_NAMEMAP *namemap, int number, - const char *name, size_t name_len); int ossl_namemap_name2num(const OSSL_NAMEMAP *namemap, const char *name); int ossl_namemap_name2num_n(const OSSL_NAMEMAP *namemap, @@ -62,10 +60,9 @@ names already associated with that number. ossl_namemap_name2num() finds the number corresponding to the given I<name>. -ossl_namemap_add_name_n() and ossl_namemap_name2num_n() do the same thing -as ossl_namemap_add_name() and ossl_namemap_name2num(), but take a string -length I<name_len> as well, allowing the caller to use a fragment of -a string as a name. +ossl_namemap_name2num_n() does the same thing as +ossl_namemap_name2num(), but takes a string length I<name_len> as well, +allowing the caller to use a fragment of a string as a name. ossl_namemap_doall_names() walks through all names associated with I<number> in the given I<namemap> and calls the function I<fn> for @@ -88,8 +85,8 @@ ossl_namemap_empty() returns 1 if the B<OSSL_NAMEMAP> is NULL or empty, 0 if it's not empty, or -1 on internal error (such as inability to lock). -ossl_namemap_add_name() and ossl_namemap_add_name_n() return the number -associated with the added string, or zero on error. +ossl_namemap_add_name() returns the number associated with the added +string, or zero on error. ossl_namemap_num2names() returns a pointer to a NULL-terminated list of pointers to the names corresponding to the given number, or NULL if |