File: gnutls_fips140_push_context

package info (click to toggle)
gnutls28 3.8.9-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,872 kB
  • sloc: ansic: 388,071; asm: 117,804; sh: 18,477; makefile: 6,732; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (23 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23




@deftypefun {int} {gnutls_fips140_push_context} (gnutls_fips140_context_t @var{context})
@var{context}: a @code{gnutls_fips140_context_t} 

Associate the FIPS  @code{context} to the current thread, diverting the
currently 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} .

The operation state of  @code{context} will be reset to
@code{GNUTLS_FIPS140_OP_INITIAL} .

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