1nbd_get_tls_username(3)             LIBNBD             nbd_get_tls_username(3)
2
3
4

NAME

6       nbd_get_tls_username - get the current TLS username
7

SYNOPSIS

9        #include <libnbd.h>
10
11        char * nbd_get_tls_username (struct nbd_handle *h);
12

DESCRIPTION

14       Get the current TLS username.
15

RETURN VALUE

17       This call returns a string.  The caller must free the returned string
18       to avoid a memory leak.
19

ERRORS

21       On error "NULL" is returned.
22
23       Refer to "ERROR HANDLING" in libnbd(3) for how to get further details
24       of the error.
25

VERSION

27       This function first appeared in libnbd 1.0.
28
29       If you need to test if this function is available at compile time check
30       if the following macro is defined:
31
32        #define LIBNBD_HAVE_NBD_GET_TLS_USERNAME 1
33

SEE ALSO

35       nbd_create(3), nbd_set_tls_username(3), libnbd(3).
36

AUTHORS

38       Eric Blake
39
40       Richard W.M. Jones
41
43       Copyright (C) 2019-2021 Red Hat Inc.
44

LICENSE

46       This library is free software; you can redistribute it and/or modify it
47       under the terms of the GNU Lesser General Public License as published
48       by the Free Software Foundation; either version 2 of the License, or
49       (at your option) any later version.
50
51       This library is distributed in the hope that it will be useful, but
52       WITHOUT ANY WARRANTY; without even the implied warranty of
53       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
54       Lesser General Public License for more details.
55
56       You should have received a copy of the GNU Lesser General Public
57       License along with this library; if not, write to the Free Software
58       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
59       02110-1301 USA
60
61
62
63libnbd-1.7.12                     2021-05-29           nbd_get_tls_username(3)
Impressum