X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fntsim-ng%2Futils%2Fsys_utils.h;h=eea514c81b657fca78aab26952260c3efb471f4d;hb=fd9a6164f9cff51682fcebe77f53d99b8d882bc7;hp=2794ac58e8bb3fce3e46992a885dbdc7e7dbcda4;hpb=96526af57d1c3026430e11cfe899e50629a91296;p=sim%2Fo1-interface.git diff --git a/ntsimulator/ntsim-ng/utils/sys_utils.h b/ntsimulator/ntsim-ng/utils/sys_utils.h index 2794ac5..eea514c 100644 --- a/ntsimulator/ntsim-ng/utils/sys_utils.h +++ b/ntsimulator/ntsim-ng/utils/sys_utils.h @@ -26,7 +26,9 @@ #define STANDARD_SFTP_PORT 22 #define KS_KEY_NAME "melacon_server_key" +#define KS_CERT_NAME "melacon_server_cert" #define SERVER_PUBLIC_SSH_KEY_PATH "/home/netconf/.ssh/melacon.server.key.pub" +#define SERVER_CERT_PATH "/home/netconf/.ssh/melacon.server.crt" //filesystem functions bool dir_exists(const char *path); @@ -47,3 +49,8 @@ uint8_t *b64_decode(const char *data, size_t input_length, size_t *output_length char *str_replace(const char *orig, const char *rep, const char *with); char *read_key(const char *filename); + +void vsftp_daemon_init(void); +void vsftp_daemon_deinit(void); +void sftp_daemon_init(void); +void sftp_daemon_deinit(void);