networkprotocolmodules/common/asn1supl/inc/SUPL-AUTH-REQ.h
branchRCL_3
changeset 52 29dbbeac905d
parent 39 a3482a8f15d8
child 53 419d6cfdb715
child 54 0c2046328c85
equal deleted inserted replaced
39:a3482a8f15d8 52:29dbbeac905d
     1 // Copyright (c) 2001-2009 Objective Systems, Inc. (http://www.obj-sys.com) 
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available 
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 
       
     9 /**
       
    10  * This file was generated by the Objective Systems ASN1C Compiler
       
    11  * (http://www.obj-sys.com).
       
    12  */
       
    13 #ifndef SUPL_AUTH_REQ_H
       
    14 #define SUPL_AUTH_REQ_H
       
    15 
       
    16 #include <stdio.h>
       
    17 #include <stdlib.h>
       
    18 #include "rtkey.h"
       
    19 #include "rtpersrc/asn1PerCppTypes.h"
       
    20 #include "ASN1CBitStr.h"
       
    21 
       
    22 /**
       
    23  * Header file for ASN.1 module SUPL-AUTH-REQ
       
    24  */
       
    25 /**************************************************************/
       
    26 /*                                                            */
       
    27 /*  SETNonce                                                  */
       
    28 /*                                                            */
       
    29 /**************************************************************/
       
    30 
       
    31 #define TV_SETNonce	(TM_UNIV|TM_PRIM|3)
       
    32 
       
    33 struct ASN1T_SETNonce {
       
    34    OSUINT32  numbits;
       
    35    OSOCTET data[16];
       
    36    // ctors
       
    37    ASN1T_SETNonce () : numbits(0) {}
       
    38    ASN1T_SETNonce (OSUINT32 _numbits, const OSOCTET* _data) :
       
    39       numbits(_numbits) {
       
    40       OSCRTLMEMCPY (data, _data, sizeof(data));
       
    41    }
       
    42 } ;
       
    43 
       
    44 IMPORT_C int asn1PE_SETNonce (OSCTXT* pctxt, ASN1T_SETNonce* pvalue);
       
    45 
       
    46 IMPORT_C int asn1PD_SETNonce (OSCTXT* pctxt, ASN1T_SETNonce* pvalue);
       
    47 
       
    48 IMPORT_C void asn1Print_SETNonce
       
    49    (const char* name, ASN1T_SETNonce* pvalue);
       
    50 
       
    51 /**************************************************************/
       
    52 /*                                                            */
       
    53 /*  KeyIdentity2                                              */
       
    54 /*                                                            */
       
    55 /**************************************************************/
       
    56 
       
    57 #define TV_KeyIdentity2	(TM_UNIV|TM_PRIM|3)
       
    58 
       
    59 struct ASN1T_KeyIdentity2 {
       
    60    OSUINT32  numbits;
       
    61    OSOCTET data[16];
       
    62    // ctors
       
    63    ASN1T_KeyIdentity2 () : numbits(0) {}
       
    64    ASN1T_KeyIdentity2 (OSUINT32 _numbits, const OSOCTET* _data) :
       
    65       numbits(_numbits) {
       
    66       OSCRTLMEMCPY (data, _data, sizeof(data));
       
    67    }
       
    68 } ;
       
    69 
       
    70 IMPORT_C int asn1PE_KeyIdentity2 (OSCTXT* pctxt, ASN1T_KeyIdentity2* pvalue);
       
    71 
       
    72 IMPORT_C int asn1PD_KeyIdentity2 (OSCTXT* pctxt, ASN1T_KeyIdentity2* pvalue);
       
    73 
       
    74 IMPORT_C void asn1Print_KeyIdentity2
       
    75    (const char* name, ASN1T_KeyIdentity2* pvalue);
       
    76 
       
    77 /**************************************************************/
       
    78 /*                                                            */
       
    79 /*  SUPLAUTHREQ                                               */
       
    80 /*                                                            */
       
    81 /**************************************************************/
       
    82 
       
    83 #define TV_SUPLAUTHREQ	(TM_UNIV|TM_CONS|16)
       
    84 
       
    85 struct ASN1T_SUPLAUTHREQ {
       
    86    ASN1T_SETNonce sETNonce;
       
    87    ASN1T_KeyIdentity2 keyIdentity2;
       
    88    IMPORT_C ASN1T_SUPLAUTHREQ ();
       
    89 } ;
       
    90 
       
    91 IMPORT_C int asn1PE_SUPLAUTHREQ (OSCTXT* pctxt, ASN1T_SUPLAUTHREQ* pvalue);
       
    92 
       
    93 IMPORT_C int asn1PD_SUPLAUTHREQ (OSCTXT* pctxt, ASN1T_SUPLAUTHREQ* pvalue);
       
    94 
       
    95 IMPORT_C void asn1Print_SUPLAUTHREQ
       
    96    (const char* name, ASN1T_SUPLAUTHREQ* pvalue);
       
    97 
       
    98 #endif