1gnutls_fips140_push_context(3)      gnutls      gnutls_fips140_push_context(3)
2
3
4

NAME

6       gnutls_fips140_push_context - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int gnutls_fips140_push_context(gnutls_fips140_context_t context);
12

ARGUMENTS

14       gnutls_fips140_context_t context
15                   a gnutls_fips140_context_t
16

DESCRIPTION

18       Associate  the  FIPS  context to the current thread, diverting the cur‐
19       rently active context. If a cryptographic operation is ongoing  in  the
20       current   thread,   e.g.,   gnutls_aead_cipher_init()   is  called  but
21       gnutls_aead_cipher_deinit() is not yet  called,  it  returns  an  error
22       GNUTLS_E_INVALID_REQUEST.
23
24       The operation state of  context will be reset to GNUTLS_FIPS140_OP_INI‐
25       TIAL.
26
27       This function is no-op if FIPS140 is not compiled  in  nor  enabled  at
28       run-time.
29

RETURNS

31       0 upon success, a negative error code otherwise
32

SINCE

34       3.7.3
35

REPORTING BUGS

37       Report bugs to <bugs@gnutls.org>.
38       Home page: https://www.gnutls.org
39
40
42       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium without royalty provided the copyright  no‐
45       tice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
50       visit
51
52       https://www.gnutls.org/manual/
53
54gnutls                               3.8.2      gnutls_fips140_push_context(3)
Impressum