/usr/include/identity.h is in libufpidentity-dev 1.0-1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | #ifndef __IDENTITY_H__
#define __IDENTITY_H__
#include <openssl/ssl.h>
#include "strmap.h"
struct result {
int code;
int level;
double confidence;
char *message;
char *text;
};
typedef struct result result_t;
struct display_item {
char *name;
char *reset;
char *display_name;
char *form_element;
char *nickname;
struct display_item *next;
};
typedef struct display_item display_item_t;
struct authentication_pretext {
char *name;
result_t *authentication_result; // just one
display_item_t *display_items; // array
};
struct authentication_context {
char *name;
result_t *authentication_result; // just one
};
struct identity_context {
SSL_CTX *ssl_ctx;
};
typedef struct authentication_pretext authentication_pretext_t;
// stubs
typedef struct authentication_context authentication_context_t;
typedef struct identity_context identity_context_t;
identity_context_t *get_identity_context(char *certificate_file_name, char *truststore_file_name, char *key_file_name, char *key_password);
void free_identity_context(identity_context_t *identity_context);
authentication_pretext_t *pre_authenticate(identity_context_t *context, const char *name, StrMap *sm);
void free_authentication_pretext(authentication_pretext_t *authentication_pretext);
authentication_context_t *authenticate(identity_context_t *context, char *name, StrMap *sm);
void free_authentication_context(authentication_context_t *authentication_context);
#endif /* __IDENTITY_H__ */
|