NetBurner 3.1
key_file.h
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
5 #ifndef _KEY_FILE_H_
6 #define _KEY_FILE_H_
7 
8 /*
9  ******************************************************************************
10 
11  Convert key from privacy enhance mail (PEM) format certificate
12 
13  Parameters:
14  privateKey - Certificate private key
15  certificatePtr - Certificate
16 
17  Return:
18  TRUE success, FALSE inconsistent certificate
19 
20  Notes:
21  None
22 
23  ******************************************************************************
24  */
25 BOOL ConvertKeyFromBlob(private_key &privateKey, const char *certificatePtr);
26 
27 /*
28  ******************************************************************************
29 
30  Convert key from privacy enhance mail (PEM) format certificate
31 
32  Parameters:
33  cp - PEM encoded certificate
34  ptr_Cert - Plain text certificate
35  cert_len - Length
36 
37  Return:
38  TRUE success, FALSE inconsistent certificate
39 
40  Notes:
41  None
42 
43  ******************************************************************************
44  */
45 BOOL ConvertCertFromBlob(const unsigned char *cp, const unsigned char *&ptr_Cert, int &cert_len);
46 
47 #endif /* #ifdef _KEY_FILE_H_ */