Changeset c39cd8e for lib/misc.h


Ignore:
Timestamp:
2017-04-02T18:50:49Z (3 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
df67b48
Parents:
262a82b
Message:

Add reverse_lookup() function which does a more proper (verified) DNS
reverse lookup. (Code copied from OpenSSH instead of redoing it
poorly.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.h

    r262a82b rc39cd8e  
    2929#include <gmodule.h>
    3030#include <time.h>
     31#include <sys/socket.h>
    3132
    3233struct ns_srv_reply {
     
    143144G_MODULE_EXPORT void srv_free(struct ns_srv_reply **srv);
    144145
     146G_MODULE_EXPORT char *reverse_lookup(const struct sockaddr *from_, const socklen_t fromlen_);
     147G_MODULE_EXPORT void ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len);
     148
    145149G_MODULE_EXPORT char *word_wrap(const char *msg, int line_len);
    146150G_MODULE_EXPORT gboolean ssl_sockerr_again(void *ssl);
Note: See TracChangeset for help on using the changeset viewer.