Update CLI -pass option

This commit is contained in:
Zhi Guan
2026-06-26 14:23:08 +08:00
parent d804ea4e9b
commit e43f9e306d
36 changed files with 602 additions and 115 deletions

26
include/gmssl/passwd.h Normal file
View File

@@ -0,0 +1,26 @@
/*
* Copyright 2014-2026 The GmSSL Project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
#ifndef GMSSL_PASSWD_H
#define GMSSL_PASSWD_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
int gmssl_read_password(const char *prompt, char *pass, size_t passlen);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -18,7 +18,7 @@ extern "C" {
#define GMSSL_VERSION_NUM 30300
#define GMSSL_VERSION_STR "GmSSL 3.3.0-dev.1172"
#define GMSSL_VERSION_STR "GmSSL 3.3.0-dev.1173"
int gmssl_version_num(void);
const char *gmssl_version_str(void);