openssl-wrapper: fix code style compliance

Fix coding style issues in OpenSSL/MbedTLS wrapper implementation:
- Align whitespace and indentation
- Fix line formatting
- Ensure consistent code style per NuttX standards

Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian 2026-01-16 21:39:22 +08:00 committed by Donny(董九柱)
parent bafe30898a
commit d2902008fe
4 changed files with 12 additions and 10 deletions

View file

@ -131,8 +131,9 @@ typedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,
unsigned char *psk,
unsigned int max_psk_len);
typedef void (*ossl_msg_cb)(int write_p, int version, int content_type,
const void *buf, size_t len, SSL *ssl, void *arg);
typedef void (*ossl_msg_cb)(
int write_p, int version, int content_type,
const void *buf, size_t len, SSL *ssl, void *arg);
typedef enum
{
@ -426,12 +427,13 @@ void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);
int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);
void SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);
void SSL_CTX_set_psk_client_callback(SSL_CTX *ctx,
SSL_psk_client_cb_func cb);
long SSL_CTX_set_mode(SSL_CTX *ctx, long larg);
void SSL_CTX_set_info_callback(SSL_CTX *ctx,
void (*cb)(const SSL *ssl, int type, int val));
void (*cb)(const SSL *ssl, int type, int val));
void SSL_CTX_set_msg_callback(SSL_CTX *ctx,
void (*cb)(int write_p, int version,

View file

@ -120,12 +120,12 @@ struct ssl_session_st
struct ssl_st
{
/* protocol version(one of SSL3.0, TLS1.0, etc.) */
/* protocol version(one of SSL3.0, TLS1.0, etc.) */
int version;
unsigned long options;
/* shut things down(0x01 : sent, 0x02 : received) */
/* shut things down(0x01 : sent, 0x02 : received) */
int shutdown;
CERT *cert;
@ -135,7 +135,7 @@ struct ssl_st
const char **alpn_protos;
RECORD_LAYER rlayer;
/* where we are */
/* where we are */
OSSL_STATEM statem;
SSL_SESSION *session;
@ -148,7 +148,7 @@ struct ssl_st
int err;
void (*info_callback) (const SSL *ssl, int type, int val);
/* SSL low-level system arch point */
/* SSL low-level system arch point */
void *ssl_pm;
SSL_CIPHER *cipher_list;

View file

@ -48,7 +48,7 @@
struct x509_st
{
/* X509 certification platform private point */
/* X509 certification platform private point */
void *x509_pm;
const X509_METHOD *method;

View file

@ -634,7 +634,7 @@ OSSL_HANDSHAKE_STATE ssl_pm_get_state(const SSL *ssl)
case MBEDTLS_SSL_HANDSHAKE_OVER:
state = TLS_ST_OK;
break;
default :
default:
state = TLS_ST_BEFORE;
break;
}