On 5/5/21 11:47 PM, Vitaly Chikunov wrote:
+enum keyid_file_type {+ KEYID_FILE_PEM_KEY = 0, + KEYID_FILE_UNK_CERT, +}; + +/* + * @keyid: Pointer to 32-bit value in network order, can be unaligned. + * @file_type: KEYID_FILE_PEM_KEY - PEM encoded private key file with possible + * appended x509 cert; + * KEYID_FILE_UNK_CERT - x509 cert file (maybe PEM, maybe DER + * encoded). + * Return: 0 on error; 1 on success.
Many other APIs of the library return -1 on error and 0 on success...