Aktualizr
C++ SOTA Client
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Asn1Message Class Reference

Reference counted holder for the top-level ASN1 message structure. More...

#include <asn1_message.h>

Public Types

using Ptr = boost::intrusive_ptr< Asn1Message >
 
template<typename T >
using SubPtr = Asn1Sub< T >
 

Public Member Functions

 Asn1Message (const Asn1Message &)=delete
 
Asn1Message operator= (const Asn1Message &)=delete
 
AKIpUptaneMes_PR present () const
 
Asn1Messagepresent (AKIpUptaneMes_PR present)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKGetInfoReqMes_t, getInfoReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKGetInfoRespMes_t, getInfoResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKManifestReqMes_t, manifestReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKManifestRespMes_t, manifestResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKPutMetaReqMes_t, putMetaReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKPutMetaRespMes_t, putMetaResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKSendFirmwareReqMes_t, sendFirmwareReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKSendFirmwareRespMes_t, sendFirmwareResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKInstallReqMes_t, installReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKInstallRespMes_t, installResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKUploadDataReqMes_t, uploadDataReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKUploadDataRespMes_t, uploadDataResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKDownloadOstreeRevReqMes_t, downloadOstreeRevReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKDownloadOstreeRevRespMes_t, downloadOstreeRevResp)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKPutMetaReq2Mes_t, putMetaReq2)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKPutMetaResp2Mes_t, putMetaResp2)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKInstallResp2Mes_t, installResp2)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKVersionReqMes_t, versionReq)
 
 ASN1_MESSAGE_DEFINE_ACCESSOR (AKVersionRespMes_t, versionResp)
 
const char * toStr ()
 

Static Public Member Functions

static Asn1Message::Ptr Empty ()
 Create a new Asn1Message, in order to fill it with data and send it.
 
static Asn1Message::Ptr FromRaw (AKIpUptaneMes_t **msg)
 Destructively copy from a raw msg pointer created by parsing an incomming message. More...
 

Public Attributes

AKIpUptaneMes_t msg_ {}
 The underlying message structure. More...
 

Friends

void intrusive_ptr_add_ref (Asn1Message *m)
 
void intrusive_ptr_release (Asn1Message *m)
 

Detailed Description

Reference counted holder for the top-level ASN1 message structure.

Definition at line 34 of file asn1_message.h.

Member Function Documentation

◆ FromRaw()

static Asn1Message::Ptr Asn1Message::FromRaw ( AKIpUptaneMes_t **  msg)
inlinestatic

Destructively copy from a raw msg pointer created by parsing an incomming message.

This takes ownership of the contents of the message, and sets *msg=nullptr to make this fact clear.

Definition at line 53 of file asn1_message.h.

Member Data Documentation

◆ msg_

AKIpUptaneMes_t Asn1Message::msg_ {}

The underlying message structure.

This is public to simplify calls to der_encode()/der_decode(). The Asn1<T> smart pointers should be used in preference to poking around inside msg_.

Definition at line 132 of file asn1_message.h.


The documentation for this class was generated from the following file: