~pedro/fido2-webauthn-client

fido2-webauthn-client/webauthn-cred.h -rw-r--r-- 583 bytes
084309c4pedro martelletto plug a mem leak in cbor_pack_item() 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2020 Pedro Martelletto. All rights reserved.
 * Use of this source code is governed by a BSD-style
 * license that can be found in the LICENSE file.
 */

#ifndef _WEBAUTHN_CRED_H_
#define _WEBAUTHN_CRED_H_

struct webauthn_cred	*webauthn_cred_new(void);
void			 webauthn_cred_free(struct webauthn_cred **);
int			 webauthn_cred_begin(struct webauthn_cred *);
int			 webauthn_cred_make_cred(struct webauthn_cred *, fido_dev_t *);
int			 webauthn_cred_finish(struct webauthn_cred *);
const char		*webauthn_cred_session_cookie(const struct webauthn_cred *);

#endif