2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2015 Kern Sibbald
5 Copyright (C) 2014 Free Software Foundation Europe e.V.
7 The original author of Bacula is Kern Sibbald, with contributions
8 from many others, a complete list can be found in the file AUTHORS.
10 You may use this file and others of this release according to the
11 license defined in the LICENSE file, which includes the Affero General
12 Public License, v3.0 ("AGPLv3") and some additional permissions and
13 terms pursuant to its AGPLv3 Section 7.
15 This notice must be preserved when any source code is
16 conveyed and/or propagated.
18 Bacula(R) is a registered trademark of Kern Sibbald.
27 * Define a backup context
30 /* Global variables */
32 FF_PKT *ff_pkt; /* find file packet */
40 /* Crypto variables */
42 DIGEST *signing_digest;
45 CIPHER_CONTEXT *cipher_ctx;
46 const uint8_t *cipher_input;
47 uint32_t cipher_input_len;
48 uint32_t cipher_block_size;
49 uint32_t encrypted_len;
51 /* Compression variables */
52 #if defined(HAVE_LIBZ) || defined(HAVE_LZO)
54 uLong max_compress_len;
59 comp_stream_header ch;
64 bool crypto_setup_digests(bctx_t &bctx);
65 bool crypto_terminate_digests(bctx_t &bctx);
66 bool crypto_session_start(JCR *jcr);
67 void crypto_session_end(JCR *jcr);
68 bool crypto_session_send(JCR *jcr, BSOCK *sd);
69 bool crypto_allocate_ctx(bctx_t &bctx);
70 void crypto_free(bctx_t &bctx);
72 bool encode_and_send_attributes(bctx_t &bctx);
74 bool process_and_send_data(bctx_t &bctx);
77 DWORD WINAPI read_efs_data_cb(PBYTE pbData, PVOID pvCallbackContext, ULONG ulLength);