1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/freebl/blapii.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* 1.5 + * blapii.h - private data structures and prototypes for the freebl library 1.6 + * 1.7 + * This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#ifndef _BLAPII_H_ 1.12 +#define _BLAPII_H_ 1.13 + 1.14 +#include "blapit.h" 1.15 + 1.16 +/* max block size of supported block ciphers */ 1.17 +#define MAX_BLOCK_SIZE 16 1.18 + 1.19 +typedef SECStatus (*freeblCipherFunc)(void *cx, unsigned char *output, 1.20 + unsigned int *outputLen, unsigned int maxOutputLen, 1.21 + const unsigned char *input, unsigned int inputLen, 1.22 + unsigned int blocksize); 1.23 +typedef void (*freeblDestroyFunc)(void *cx, PRBool freeit); 1.24 + 1.25 +SEC_BEGIN_PROTOS 1.26 + 1.27 +#if defined(XP_UNIX) && !defined(NO_FORK_CHECK) 1.28 + 1.29 +extern PRBool bl_parentForkedAfterC_Initialize; 1.30 + 1.31 +#define SKIP_AFTER_FORK(x) if (!bl_parentForkedAfterC_Initialize) x 1.32 + 1.33 +#else 1.34 + 1.35 +#define SKIP_AFTER_FORK(x) x 1.36 + 1.37 +#endif 1.38 + 1.39 +SEC_END_PROTOS 1.40 + 1.41 +#endif /* _BLAPII_H_ */ 1.42 +