diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-08-29 10:09:09 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-08-29 10:09:09 +0200 |
commit | 60673f5fe9911a4735ff9f1bef6071c96b1896e4 (patch) | |
tree | 6e2bb4a193cb36fdbf4a1ee4f8ce2a44d8097cb4 /lib/gnutls_extensions.c | |
parent | 55b3f4a91e16515ff617ad239dc7f5ad8a6a760b (diff) | |
download | gnutls-60673f5fe9911a4735ff9f1bef6071c96b1896e4.tar.gz |
Re-add, but mark static.
Diffstat (limited to 'lib/gnutls_extensions.c')
-rw-r--r-- | lib/gnutls_extensions.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gnutls_extensions.c b/lib/gnutls_extensions.c index ac3a2a2a81..e5716965a2 100644 --- a/lib/gnutls_extensions.c +++ b/lib/gnutls_extensions.c @@ -63,6 +63,18 @@ _gnutls_ext_func_recv (uint16_t type, gnutls_ext_parse_type_t parse_type) return NULL; } +static const char * +_gnutls_extension_get_name (uint16_t type) +{ + size_t i; + + for (i = 0; i < extfunc_size; i++) + if (extfunc[i].type == type) + return extfunc[i].name; + + return NULL; +} + /* Checks if the extension we just received is one of the * requested ones. Otherwise it's a fatal error. */ |