X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/Security/libsecurity_keychain/libDER/libDERUtils/fileIo.h diff --git a/Security/libsecurity_keychain/libDER/libDERUtils/fileIo.h b/Security/libsecurity_keychain/libDER/libDERUtils/fileIo.h new file mode 100644 index 00000000..26e31f71 --- /dev/null +++ b/Security/libsecurity_keychain/libDER/libDERUtils/fileIo.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2005-2007,2010-2011 Apple Inc. All Rights Reserved. + */ + +#ifndef _DER_FILE_IO_H_ +#define _DER_FILE_IO_H_ + +/* + * Read entire file. + */ +#ifdef __cplusplus +extern "C" { +#endif + +int readFile( + const char *fileName, + unsigned char **bytes, // mallocd and returned + unsigned *numBytes); // returned + +int writeFile( + const char *fileName, + const unsigned char *bytes, + unsigned numBytes); + +#ifdef __cplusplus +} +#endif + +#endif /* _DER_FILE_IO_H_ */