⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 any.h

📁 RSA加密/解密算法源码 asn1c-0.9.12
💻 H
字号:
/*- * Copyright (c) 2004 Lev Walkin <vlm@lionet.info>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */#ifndef ASN_TYPE_ANY_H#define ASN_TYPE_ANY_H#include <OCTET_STRING.h>	/* Implemented via OCTET STRING type */typedef struct ANY {	uint8_t *buf;	/* BER-encoded ANY contents */	int size;	/* Size of the above buffer */	asn_struct_ctx_t _asn_ctx;	/* Parsing across buffer boundaries */} ANY_t;extern asn_TYPE_descriptor_t asn_DEF_ANY;asn_struct_free_f ANY_free;asn_struct_print_f ANY_print;ber_type_decoder_f ANY_decode_ber;der_type_encoder_f ANY_encode_der;xer_type_encoder_f ANY_encode_xer;/****************************** * Handy conversion routines. * ******************************//* Convert another ASN.1 type into the ANY. This implies DER encoding. */int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr);ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr);/* Convert the contents of the ANY type into the specified type. */int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);#define	ANY_fromBuf(s, buf, size)	OCTET_STRING_fromBuf((s), (buf), (size))#define	ANY_new_fromBuf(buf, size)	OCTET_STRING_new_fromBuf((buf), (size))#endif	/* ASN_TYPE_ANY_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -