Schema Encryption and Decryption Hooks
The encryptSchemaSource user-supplied Encryption hook function is called when creating schema extract files with the Encrypt Sources check box in the Extract dialog Schema Options sheet checked (that is, it is enabled).
The encryptSchemaSource function has the following format.
int JOMAPI encryptSchemaSource(const BYTE *inData, Size inLength, BYTE **pOutData, Size *pOutLength);
The decryptSchemaSource user-supplied Decryption hook function is called when loading schema extract files containing encrypted method sources. The decryptSchemaSource function has the following format.
int JOMAPI decryptSchemaSource(const BYTE *inData, Size inLength, BYTE **pOutData, Size *pOutLength);
The encryptSchemaSource and decryptSchemaSource functions return the following values.
Value | Description |
---|---|
0 | The encryption or decryption routine was successful |
Non-zero | The encryption or decryption routine failed |