Changeset 40329 in vbox for trunk/include
- Timestamp:
- Mar 2, 2012 4:13:50 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/manifest.h
r39877 r40329 58 58 /** @} */ 59 59 60 /** @name Digest types. */ 61 typedef enum RTDIGESTTYPE 62 { 63 /** CRC32 checksum */ 64 RTDIGESTTYPE_CRC32 = 1, 65 /** CRC64 checksum */ 66 RTDIGESTTYPE_CRC64, 67 /** MD5 checksum (unsafe!) */ 68 RTDIGESTTYPE_MD5, 69 /** SHA1 checksum (unsafe!) */ 70 RTDIGESTTYPE_SHA1, 71 /** SHA256 checksum */ 72 RTDIGESTTYPE_SHA256, 73 /** SHA512 checksum */ 74 RTDIGESTTYPE_SHA512 75 } RTDIGESTTYPE; 76 /** @} */ 77 60 78 61 79 /** … … 399 417 /** 400 418 * Input structure for RTManifestVerify() which contains the filename & the 401 * SHA1 digest.419 * SHA1/SHA256 digest. 402 420 */ 403 421 typedef struct RTMANIFESTTEST … … 405 423 /** The filename. */ 406 424 const char *pszTestFile; 407 /** The SHA1 digest of the file. */425 /** The SHA1/SHA256 digest of the file. */ 408 426 const char *pszTestDigest; 409 427 } RTMANIFESTTEST; … … 457 475 * 458 476 * @param pszManifestFile Filename of the manifest file to create. 477 * @param enmDigestType The digest type (RTDIGESTTYPE_*) 459 478 * @param papszFiles Array of files to create SHA1 sums for. 460 479 * @param cFiles Number of entries in papszFiles. … … 462 481 * @param pvUser user defined pointer for the callback 463 482 */ 464 RTR3DECL(int) RTManifestWriteFiles(const char *pszManifestFile, const char * const *papszFiles, size_t cFiles, 483 RTR3DECL(int) RTManifestWriteFiles(const char *pszManifestFile, RTDIGESTTYPE enmDigestType, 484 const char * const *papszFiles, size_t cFiles, 465 485 PFNRTPROGRESS pfnProgressCallback, void *pvUser); 466 486 … … 490 510 * @param ppvBuf Pointer to resulting memory buffer. 491 511 * @param pcbSize Pointer for the size of the memory buffer. 512 * @param enmDigestType Which type of digest ("SHA1", "SHA256", ...) 492 513 * @param paFiles Array of file names and digests. 493 514 * @param cFiles Number of entries in paFiles. 494 515 */ 495 RTR3DECL(int) RTManifestWriteFilesBuf(void **ppvBuf, size_t *pcbSize, PRTMANIFESTTEST paFiles, size_t cFiles);516 RTR3DECL(int) RTManifestWriteFilesBuf(void **ppvBuf, size_t *pcbSize, RTDIGESTTYPE enmDigestType, PRTMANIFESTTEST paFiles, size_t cFiles); 496 517 497 518 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.