Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os by
coap_security_handler_stub.h
00001 /* 00002 * Copyright (c) 2015-2016 ARM Limited. All Rights Reserved. 00003 * 00004 * SPDX-License-Identifier: Apache-2.0 00005 * 00006 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00007 * not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00014 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #ifndef __COAP_SECURITY_HANDLER_STUB_H__ 00019 #define __COAP_SECURITY_HANDLER_STUB_H__ 00020 00021 #include <inttypes.h> 00022 #include "coap_security_handler.h" 00023 00024 typedef struct tsh{ 00025 coap_security_t *sec_obj; 00026 int int_value; 00027 int counter; 00028 int values[10]; 00029 00030 int (*send_cb)(int8_t socket_id, uint8_t *address_ptr, uint16_t port, const unsigned char *, size_t); 00031 int (*receive_cb)(int8_t socket_id, unsigned char *, size_t); 00032 void (*start_timer_cb)(int8_t timer_id, uint32_t min, uint32_t fin); 00033 int (*timer_status_cb)(int8_t timer_id); 00034 } thread_sec_def; 00035 00036 extern thread_sec_def coap_security_handler_stub; 00037 00038 #endif //__COAP_SECURITY_HANDLER_STUB_H__
Generated on Tue Jul 12 2022 13:15:38 by
1.7.2
