From 6c0be0c898486ca9c3f04b9e1a6c97f4376530ca Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Wed, 28 Jan 2026 10:16:37 +0000 Subject: [PATCH] coap_oscore.c: Add in missing non-OSCORE stub functions --- src/coap_oscore.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/src/coap_oscore.c b/src/coap_oscore.c index cd80ca8d..a9cf657a 100644 --- a/src/coap_oscore.c +++ b/src/coap_oscore.c @@ -2302,6 +2302,26 @@ coap_new_client_session_oscore(coap_context_t *ctx, return NULL; } +coap_session_t * +coap_new_client_session_oscore3(coap_context_t *ctx, + const coap_address_t *local_if, + const coap_address_t *server, + coap_proto_t proto, + coap_oscore_conf_t *oscore_conf, + void *app_data, + coap_app_data_free_callback_t callback, + coap_str_const_t *ws_host) { + (void)ctx; + (void)local_if; + (void)server; + (void)proto; + (void)oscore_conf; + (void)app_data; + (void)callback; + (void)ws_host; + return NULL; +} + coap_session_t * coap_new_client_session_oscore_psk(coap_context_t *ctx, const coap_address_t *local_if, @@ -2318,6 +2338,28 @@ coap_new_client_session_oscore_psk(coap_context_t *ctx, return NULL; } +coap_session_t * +coap_new_client_session_oscore_psk3(coap_context_t *ctx, + const coap_address_t *local_if, + const coap_address_t *server, + coap_proto_t proto, + coap_dtls_cpsk_t *psk_data, + coap_oscore_conf_t *oscore_conf, + void *app_data, + coap_app_data_free_callback_t callback, + coap_str_const_t *ws_host) { + (void)ctx; + (void)local_if; + (void)server; + (void)proto; + (void)psk_data; + (void)oscore_conf; + (void)app_data; + (void)callback; + (void)ws_host; + return NULL; +} + coap_session_t * coap_new_client_session_oscore_pki(coap_context_t *ctx, const coap_address_t *local_if, @@ -2334,6 +2376,28 @@ coap_new_client_session_oscore_pki(coap_context_t *ctx, return NULL; } +coap_session_t * +coap_new_client_session_oscore_pki3(coap_context_t *ctx, + const coap_address_t *local_if, + const coap_address_t *server, + coap_proto_t proto, + coap_dtls_pki_t *pki_data, + coap_oscore_conf_t *oscore_conf, + void *app_data, + coap_app_data_free_callback_t callback, + coap_str_const_t *ws_host) { + (void)ctx; + (void)local_if; + (void)server; + (void)proto; + (void)pki_data; + (void)oscore_conf; + (void)app_data; + (void)callback; + (void)ws_host; + return NULL; +} + int coap_context_oscore_server(coap_context_t *context, coap_oscore_conf_t *oscore_conf) {