xref: /freebsd-src/crypto/openssh/regress/misc/fuzz-harness/ssh-sk-null.cc (revision 1323ec571215a77ddd21294f0871979d5ad6b992)
119261079SEd Maste /* $OpenBSD$ */
219261079SEd Maste /*
319261079SEd Maste  * Copyright (c) 2019 Google LLC
419261079SEd Maste  *
519261079SEd Maste  * Permission to use, copy, modify, and distribute this software for any
619261079SEd Maste  * purpose with or without fee is hereby granted, provided that the above
719261079SEd Maste  * copyright notice and this permission notice appear in all copies.
819261079SEd Maste  *
919261079SEd Maste  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1019261079SEd Maste  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1119261079SEd Maste  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1219261079SEd Maste  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1319261079SEd Maste  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1419261079SEd Maste  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1519261079SEd Maste  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1619261079SEd Maste  */
1719261079SEd Maste 
1819261079SEd Maste extern "C" {
1919261079SEd Maste 
2019261079SEd Maste #include "includes.h"
2119261079SEd Maste 
2219261079SEd Maste #include <sys/types.h>
2319261079SEd Maste 
2419261079SEd Maste #include "ssherr.h"
2519261079SEd Maste #include "ssh-sk.h"
2619261079SEd Maste 
2719261079SEd Maste int
sshsk_enroll(int type,const char * provider_path,const char * device,const char * application,const char * userid,uint8_t flags,const char * pin,struct sshbuf * challenge_buf,struct sshkey ** keyp,struct sshbuf * attest)2819261079SEd Maste sshsk_enroll(int type, const char *provider_path, const char *device,
2919261079SEd Maste     const char *application, const char *userid, uint8_t flags,
3019261079SEd Maste     const char *pin, struct sshbuf *challenge_buf,
3119261079SEd Maste     struct sshkey **keyp, struct sshbuf *attest)
3219261079SEd Maste {
3319261079SEd Maste 	return SSH_ERR_FEATURE_UNSUPPORTED;
3419261079SEd Maste }
3519261079SEd Maste 
3619261079SEd Maste int
sshsk_sign(const char * provider_path,struct sshkey * key,u_char ** sigp,size_t * lenp,const u_char * data,size_t datalen,u_int compat,const char * pin)3719261079SEd Maste sshsk_sign(const char *provider_path, struct sshkey *key,
3819261079SEd Maste     u_char **sigp, size_t *lenp, const u_char *data, size_t datalen,
3919261079SEd Maste     u_int compat, const char *pin)
4019261079SEd Maste {
4119261079SEd Maste 	return SSH_ERR_FEATURE_UNSUPPORTED;
4219261079SEd Maste }
4319261079SEd Maste 
4419261079SEd Maste int
sshsk_load_resident(const char * provider_path,const char * device,const char * pin,u_int flags,struct sshsk_resident_key *** srksp,size_t * nsrksp)4519261079SEd Maste sshsk_load_resident(const char *provider_path, const char *device,
46*1323ec57SEd Maste     const char *pin, u_int flags, struct sshsk_resident_key ***srksp,
47*1323ec57SEd Maste     size_t *nsrksp)
4819261079SEd Maste {
4919261079SEd Maste 	return SSH_ERR_FEATURE_UNSUPPORTED;
5019261079SEd Maste }
5119261079SEd Maste 
5219261079SEd Maste };
53