Changeset 57584 in vbox for trunk/include/iprt/crypto
- Timestamp:
- Aug 29, 2015 8:02:02 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102412
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/store.h
r57572 r57584 144 144 145 145 /** 146 * Adds certificates from the specified file.147 *148 * @returns IPRT status code. Even when RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR is149 * used, an error is returned as an error (and not a warning).150 *151 * @param hStore The store to add the certificate(s) to.152 * @param fFlags RTCRCERTCTX_F_ADD_IF_NOT_FOUND and/or153 * RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR.154 * @param pszFilename The filename.155 * @param pErrInfo Where to return additional error/warning info.156 * Optional.157 */158 RTDECL(int) RTCrStoreCertAddFromFile(RTCRSTORE hStore, uint32_t fFlags, const char *pszFilename, PRTERRINFO pErrInfo);159 160 /**161 146 * Adds certificates from files in the specified directory. 162 147 * … … 176 161 RTDECL(int) RTCrStoreCertAddFromDir(RTCRSTORE hStore, uint32_t fFlags, const char *pszDir, 177 162 PCRTSTRTUPLE paSuffixes, size_t cSuffixes, PRTERRINFO pErrInfo); 163 164 /** 165 * Adds certificates from the specified file. 166 * 167 * The supported file formats are: 168 * - PEM (base 64 blobs wrapped in -----BEGIN / END----). Support multiple 169 * certificates in one file. 170 * - Binary DER ASN.1 certificate. Only one per file. 171 * - Java key store version 2. 172 * 173 * @returns IPRT status code. Even when RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR is 174 * used, an error is returned as an error (and not a warning). 175 * 176 * @param hStore The store to add the certificate(s) to. 177 * @param fFlags RTCRCERTCTX_F_ADD_IF_NOT_FOUND and/or 178 * RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR. 179 * @param pszFilename The filename. 180 * @param pErrInfo Where to return additional error/warning info. 181 * Optional. 182 */ 183 RTDECL(int) RTCrStoreCertAddFromFile(RTCRSTORE hStore, uint32_t fFlags, const char *pszFilename, PRTERRINFO pErrInfo); 184 185 /** 186 * Adds certificates from the specified java key store file. 187 * 188 * @returns IPRT status code. Even when RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR is 189 * used, an error is returned as an error (and not a warning). 190 * 191 * @param hStore The store to add the certificate(s) to. 192 * @param fFlags RTCRCERTCTX_F_ADD_IF_NOT_FOUND and/or 193 * RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR. 194 * @param pszFilename The path to the JKS file. 195 * @param pErrInfo Where to return additional error/warning info. 196 * Optional. 197 */ 198 RTDECL(int) RTCrStoreCertAddFromJavaKeyStore(RTCRSTORE hStore, uint32_t fFlags, const char *pszFilename, PRTERRINFO pErrInfo); 199 200 /** 201 * Adds certificates from an in-memory java key store. 202 * 203 * @returns IPRT status code. Even when RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR is 204 * used, an error is returned as an error (and not a warning). 205 * 206 * @param hStore The store to add the certificate(s) to. 207 * @param fFlags RTCRCERTCTX_F_ADD_IF_NOT_FOUND and/or 208 * RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR. 209 * @param pvContent Pointer to the key store bytes. 210 * @param cbContent The size of the key store. 211 * @param pszErrorName The file name or whatever helpful indicator the 212 * caller want in the error messages. 213 * @param pErrInfo Where to return additional error/warning info. 214 * Optional. 215 */ 216 RTDECL(int) RTCrStoreCertAddFromJavaKeyStoreInMem(RTCRSTORE hStore, uint32_t fFlags, void const *pvContent, size_t cbContent, 217 const char *pszErrorName, PRTERRINFO pErrInfo); 178 218 179 219 /**
Note:
See TracChangeset
for help on using the changeset viewer.