1gnutls_x509_crt_check_ip(3)         gnutls         gnutls_x509_crt_check_ip(3)
2
3
4

NAME

6       gnutls_x509_crt_check_ip - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       unsigned    gnutls_x509_crt_check_ip(gnutls_x509_crt_t    cert,   const
12       unsigned char * ip, unsigned int ip_size, unsigned int flags);
13

ARGUMENTS

15       gnutls_x509_crt_t cert
16                   should contain an gnutls_x509_crt_t type
17
18       const unsigned char * ip
19                   A pointer to the raw IP address
20
21       unsigned int ip_size
22                   the number of bytes in ip (4 or 16)
23
24       unsigned int flags
25                   should be zero
26

DESCRIPTION

28       This function will check if the IP allowed IP addresses in the certifi‐
29       cate's subject alternative name match the provided IP address.
30

RETURNS

32       non-zero for a successful match, and zero on failure.
33

REPORTING BUGS

35       Report bugs to <bugs@gnutls.org>.
36       Home page: http://www.gnutls.org
37
38
40       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
41       Copying  and  distribution  of this file, with or without modification,
42       are permitted in any medium  without  royalty  provided  the  copyright
43       notice and this notice are preserved.
44

SEE ALSO

46       The  full  documentation  for gnutls is maintained as a Texinfo manual.
47       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
48       visit
49
50       http://www.gnutls.org/manual/
51
52gnutls                               3.6.5         gnutls_x509_crt_check_ip(3)
Impressum