This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
2016-07-28 23:51:50 +02:00
|
|
|
#ifndef _IPXE_PEM_H
|
|
|
|
#define _IPXE_PEM_H
|
|
|
|
|
|
|
|
/** @file
|
|
|
|
*
|
2017-05-29 18:29:20 +02:00
|
|
|
* PEM-encoded ASN.1 data
|
2016-07-28 23:51:50 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|
|
|
|
2017-05-29 18:29:20 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <ipxe/uaccess.h>
|
|
|
|
#include <ipxe/asn1.h>
|
2016-07-28 23:51:50 +02:00
|
|
|
#include <ipxe/image.h>
|
|
|
|
|
|
|
|
/** Pre-encapsulation boundary marker */
|
|
|
|
#define PEM_BEGIN "-----BEGIN"
|
|
|
|
|
|
|
|
/** Post-encapsulation boundary marker */
|
|
|
|
#define PEM_END "-----END"
|
|
|
|
|
2017-05-29 18:29:20 +02:00
|
|
|
extern int pem_asn1 ( userptr_t data, size_t len, size_t offset,
|
|
|
|
struct asn1_cursor **cursor );
|
|
|
|
|
2016-07-28 23:51:50 +02:00
|
|
|
extern struct image_type pem_image_type __image_type ( PROBE_NORMAL );
|
|
|
|
|
|
|
|
#endif /* _IPXE_PEM_H */
|