summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_fips140_pop_context
blob: 152f62966f9d09a00d04a186e59d29eec1dc54f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@deftypefun {int} {gnutls_fips140_pop_context} ( @var{void})

Dissociate the FIPS context currently
active on the current thread, reverting to the previously active
context. If a cryptographic operation is ongoing in the current
thread, e.g., @code{gnutls_aead_cipher_init()}  is called but
@code{gnutls_aead_cipher_deinit()}  is not yet called, it returns an error
@code{GNUTLS_E_INVALID_REQUEST} .

This function is no-op if FIPS140 is not compiled in nor enabled
at run-time.

@strong{Returns:} 0 upon success, a negative error code otherwise

@strong{Since:} 3.7.3
@end deftypefun