Diff

Differences From Artifact [3dcc1f6bc2]:

To Artifact [9c067c4d11]:


     8      8   #include <stddef.h>
     9      9   
    10     10   struct cackey_certificate {
    11     11   	size_t certificate_len;
    12     12   	unsigned char *certificate;
    13     13   };
    14     14   
           15  +typedef enum {
           16  +	CACKEY_CHROME_OK,
           17  +	CACKEY_CHROME_ERROR,
           18  +	CACKEY_CHROME_NEEDLOGIN,
           19  +	CACKEY_CHROME_NEEDPROTECTEDLOGIN
           20  +} cackey_chrome_returnType;
           21  +
    15     22   int cackey_chrome_listCertificates(struct cackey_certificate **certificates);
           23  +void cackey_chrome_freeCertificates(struct cackey_certificate *certificates, int certificatesCount);
           24  +
           25  +cackey_chrome_returnType cackey_chrome_signMessage(struct cackey_certificate *certificate, void *data, unsigned long dataLength, unsigned char *destination, unsigned long *destinationLength, char **pinPrompt, char *pin);
           26  +
           27  +void cackey_chrome_terminate(void);
    16     28   
    17     29   #  ifdef __cplusplus
    18     30   }
    19     31   #  endif
    20     32   
    21     33   #endif