diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-21 17:08:57 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-08-21 17:08:57 +0000 |
| commit | 9bfb9d9ed22bfbfec2ff49c73cb1994b2ea5981a (patch) | |
| tree | 862034cc30fef482378e6d8447ba5521885352eb /PICA_id.h | |
| parent | 255f83d5109d7ddeab1c9a343292f2cfbcf10651 (diff) | |
| download | pica-pica-9bfb9d9ed22bfbfec2ff49c73cb1994b2ea5981a.tar.gz pica-pica-9bfb9d9ed22bfbfec2ff49c73cb1994b2ea5981a.zip | |
pica-node modified to handle new id format, new files PICA_id.c PICA_id.h containing functions for working with id
git-svn-id: svn://localhost/project_picapica/trunk@263 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'PICA_id.h')
| -rw-r--r-- | PICA_id.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/PICA_id.h b/PICA_id.h new file mode 100644 index 0000000..538d0fd --- /dev/null +++ b/PICA_id.h @@ -0,0 +1,22 @@ + +#ifndef PICA_ID_H +#define PICA_ID_H + +#include <openssl/sha.h> +#include <openssl/x509.h> + +#define PICA_ID_SIZE SHA224_DIGEST_LENGTH + +#ifdef __cplusplus +extern "C" { +#endif +int PICA_id_from_X509(X509 *x, unsigned char *id); + +unsigned char *PICA_id_from_base64(const unsigned char *buf, unsigned char *id); +char *PICA_id_to_base64(const unsigned char *id, char *buf); + +#ifdef __cplusplus +} +#endif + +#endif
\ No newline at end of file |
