[gnutls-devel] Missing function. Where is version_to_entry defined?

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Feb 11 17:58:56 CET 2015


On Wed 2015-02-11 11:04:30 -0500, JONES, BILL wrote:

> Which library is the version_to_entry function defined.
>
> It's used in many places in gnutls...not just related to openssl.
>
> gnutls/gnutls-3.3.11/lib/gnutls_dtls.c:       v = version_to_entry(version);
> gnutls/gnutls-3.3.11/lib/gnutls_int.h:        s->security_parameters.pversion = version_to_entry(v);
> gnutls/gnutls-3.3.11/lib/algorithms/protocols.c:const version_entry_st *version_to_entry(gnutls_protocol_t version)

the function is defined here in lib/algorithms/protocols.c.

> gnutls/gnutls-3.3.11/lib/gnutls_handshake.c:                              version_to_entry(_gnutls_version_max
> gnutls/gnutls-3.3.11/lib/gnutls_session_pack.c:           version_to_entry(version);
> gnutls/gnutls-3.3.11/lib/gnutls_session_pack.c:           version_to_entry(version);
> gnutls/gnutls-3.3.11/lib/algorithms.h:const version_entry_st *version_to_entry(gnutls_protocol_t c);

the function is declared here in lib/algorithms/protocols.h

If that's not what you're asking, can you clarify?  are you running into
specific problems?  if so, can you show what the problems are
specifically?

    --dkg



More information about the Gnutls-devel mailing list