[Asterisk-cvs] asterisk-addons/asterisk-ooh323c/ooh323c/src/h323 H235-SECURITY-MESSAGES.h, NONE, 1.1 H235-SECURITY-MESSAGESDec.c, NONE, 1.1 H235-SECURITY-MESSAGESEnc.c, NONE, 1.1 H323-MESSAGES.c, NONE, 1.1 H323-MESSAGES.h, NONE, 1.1 H323-MESSAGESDec.c, NONE, 1.1 H323-MESSAGESEnc.c, NONE, 1.1 MULTIMEDIA-SYSTEM-CONTROL.c, NONE, 1.1 MULTIMEDIA-SYSTEM-CONTROL.h, NONE, 1.1 MULTIMEDIA-SYSTEM-CONTROLDec.c, NONE, 1.1 MULTIMEDIA-SYSTEM-CONTROLEnc.c, NONE, 1.1

vphirke at lists.digium.com vphirke at lists.digium.com
Mon May 23 16:59:34 CDT 2005


Update of /usr/cvsroot/asterisk-addons/asterisk-ooh323c/ooh323c/src/h323
In directory mongoose.digium.com:/tmp/cvs-serv20453/h323

Added Files:
	H235-SECURITY-MESSAGES.h H235-SECURITY-MESSAGESDec.c 
	H235-SECURITY-MESSAGESEnc.c H323-MESSAGES.c H323-MESSAGES.h 
	H323-MESSAGESDec.c H323-MESSAGESEnc.c 
	MULTIMEDIA-SYSTEM-CONTROL.c MULTIMEDIA-SYSTEM-CONTROL.h 
	MULTIMEDIA-SYSTEM-CONTROLDec.c MULTIMEDIA-SYSTEM-CONTROLEnc.c 
Log Message:
Added

--- NEW FILE: H235-SECURITY-MESSAGES.h ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#ifndef H235_SECURITY_MESSAGES_H
#define H235_SECURITY_MESSAGES_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>

#include "ooasn1.h"

/**************************************************************/
/*                                                            */
/*  ChallengeString                                           */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ChallengeString {
   ASN1UINT numocts;
   ASN1OCTET data[128];
} H235ChallengeString;

EXTERN int asn1PE_H235ChallengeString (OOCTXT* pctxt, H235ChallengeString* pvalue);

EXTERN int asn1PD_H235ChallengeString (OOCTXT* pctxt, H235ChallengeString* pvalue);

/**************************************************************/
/*                                                            */
/*  TimeStamp                                                 */
/*                                                            */
/**************************************************************/

typedef ASN1UINT H235TimeStamp;

EXTERN int asn1PE_H235TimeStamp (OOCTXT* pctxt, H235TimeStamp value);

EXTERN int asn1PD_H235TimeStamp (OOCTXT* pctxt, H235TimeStamp* pvalue);

/**************************************************************/
/*                                                            */
/*  RandomVal                                                 */
/*                                                            */
/**************************************************************/

typedef ASN1INT H235RandomVal;

EXTERN int asn1PE_H235RandomVal (OOCTXT* pctxt, H235RandomVal value);

EXTERN int asn1PD_H235RandomVal (OOCTXT* pctxt, H235RandomVal* pvalue);

/**************************************************************/
/*                                                            */
/*  Password                                                  */
/*                                                            */
/**************************************************************/

typedef ASN1BMPString H235Password;

EXTERN int asn1PE_H235Password (OOCTXT* pctxt, H235Password value);

EXTERN int asn1PD_H235Password (OOCTXT* pctxt, H235Password* pvalue);

/**************************************************************/
/*                                                            */
/*  EncodedPwdCertToken                                       */
/*                                                            */
/**************************************************************/

typedef ASN1OpenType H235EncodedPwdCertToken;

EXTERN int asn1PE_H235EncodedPwdCertToken (OOCTXT* pctxt, H235EncodedPwdCertToken value);

EXTERN int asn1PD_H235EncodedPwdCertToken (OOCTXT* pctxt, H235EncodedPwdCertToken* pvalue);

/**************************************************************/
/*                                                            */
/*  NonStandardParameter                                      */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235NonStandardParameter {
   ASN1OBJID nonStandardIdentifier;
   ASN1DynOctStr data;
} H235NonStandardParameter;

EXTERN int asn1PE_H235NonStandardParameter (OOCTXT* pctxt, H235NonStandardParameter* pvalue);

EXTERN int asn1PD_H235NonStandardParameter (OOCTXT* pctxt, H235NonStandardParameter* pvalue);

/**************************************************************/
/*                                                            */
/*  AuthenticationBES                                         */
/*                                                            */
/**************************************************************/

/* Choice tag constants */

#define T_H235AuthenticationBES_default_ 1
#define T_H235AuthenticationBES_radius  2
#define T_H235AuthenticationBES_extElem1 3

typedef struct EXTERN H235AuthenticationBES {
   int t;
} H235AuthenticationBES;

EXTERN int asn1PE_H235AuthenticationBES (OOCTXT* pctxt, H235AuthenticationBES* pvalue);

EXTERN int asn1PD_H235AuthenticationBES (OOCTXT* pctxt, H235AuthenticationBES* pvalue);

/**************************************************************/
/*                                                            */
/*  AuthenticationMechanism                                   */
/*                                                            */
/**************************************************************/

/* Choice tag constants */

#define T_H235AuthenticationMechanism_dhExch 1
#define T_H235AuthenticationMechanism_pwdSymEnc 2
#define T_H235AuthenticationMechanism_pwdHash 3
#define T_H235AuthenticationMechanism_certSign 4
#define T_H235AuthenticationMechanism_ipsec 5
#define T_H235AuthenticationMechanism_tls 6
#define T_H235AuthenticationMechanism_nonStandard 7
#define T_H235AuthenticationMechanism_authenticationBES 8
#define T_H235AuthenticationMechanism_extElem1 9

typedef struct EXTERN H235AuthenticationMechanism {
   int t;
   union {
      /* t = 1 */
      /* t = 2 */
      /* t = 3 */
      /* t = 4 */
      /* t = 5 */
      /* t = 6 */
      /* t = 7 */
      H235NonStandardParameter *nonStandard;
      /* t = 8 */
      H235AuthenticationBES *authenticationBES;
      /* t = 9 */
   } u;
} H235AuthenticationMechanism;

EXTERN int asn1PE_H235AuthenticationMechanism (OOCTXT* pctxt, H235AuthenticationMechanism* pvalue);

EXTERN int asn1PD_H235AuthenticationMechanism (OOCTXT* pctxt, H235AuthenticationMechanism* pvalue);

/**************************************************************/
/*                                                            */
/*  DHset_halfkey                                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235DHset_halfkey {
   ASN1UINT  numbits;
   ASN1OCTET data[256];
} H235DHset_halfkey;

EXTERN int asn1PE_H235DHset_halfkey (OOCTXT* pctxt, H235DHset_halfkey* pvalue);

EXTERN int asn1PD_H235DHset_halfkey (OOCTXT* pctxt, H235DHset_halfkey* pvalue);

/**************************************************************/
/*                                                            */
/*  DHset_modSize                                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235DHset_modSize {
   ASN1UINT  numbits;
   ASN1OCTET data[256];
} H235DHset_modSize;

EXTERN int asn1PE_H235DHset_modSize (OOCTXT* pctxt, H235DHset_modSize* pvalue);

EXTERN int asn1PD_H235DHset_modSize (OOCTXT* pctxt, H235DHset_modSize* pvalue);

/**************************************************************/
/*                                                            */
/*  DHset_generator                                           */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235DHset_generator {
   ASN1UINT  numbits;
   ASN1OCTET data[256];
} H235DHset_generator;

EXTERN int asn1PE_H235DHset_generator (OOCTXT* pctxt, H235DHset_generator* pvalue);

EXTERN int asn1PD_H235DHset_generator (OOCTXT* pctxt, H235DHset_generator* pvalue);

/**************************************************************/
/*                                                            */
/*  DHset                                                     */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235DHset {
   H235DHset_halfkey halfkey;
   H235DHset_modSize modSize;
   H235DHset_generator generator;
} H235DHset;

EXTERN int asn1PE_H235DHset (OOCTXT* pctxt, H235DHset* pvalue);

EXTERN int asn1PD_H235DHset (OOCTXT* pctxt, H235DHset* pvalue);

/**************************************************************/
/*                                                            */
/*  TypedCertificate                                          */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235TypedCertificate {
   ASN1OBJID type;
   ASN1DynOctStr certificate;
} H235TypedCertificate;

EXTERN int asn1PE_H235TypedCertificate (OOCTXT* pctxt, H235TypedCertificate* pvalue);

EXTERN int asn1PD_H235TypedCertificate (OOCTXT* pctxt, H235TypedCertificate* pvalue);

/**************************************************************/
/*                                                            */
/*  Identifier                                                */
/*                                                            */
/**************************************************************/

typedef ASN1BMPString H235Identifier;

EXTERN int asn1PE_H235Identifier (OOCTXT* pctxt, H235Identifier value);

EXTERN int asn1PD_H235Identifier (OOCTXT* pctxt, H235Identifier* pvalue);

/**************************************************************/
/*                                                            */
/*  ECpoint_x                                                 */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECpoint_x {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECpoint_x;

EXTERN int asn1PE_H235ECpoint_x (OOCTXT* pctxt, H235ECpoint_x* pvalue);

EXTERN int asn1PD_H235ECpoint_x (OOCTXT* pctxt, H235ECpoint_x* pvalue);

/**************************************************************/
/*                                                            */
/*  ECpoint_y                                                 */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECpoint_y {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECpoint_y;

EXTERN int asn1PE_H235ECpoint_y (OOCTXT* pctxt, H235ECpoint_y* pvalue);

EXTERN int asn1PD_H235ECpoint_y (OOCTXT* pctxt, H235ECpoint_y* pvalue);

/**************************************************************/
/*                                                            */
/*  ECpoint                                                   */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECpoint {
   struct {
      unsigned xPresent : 1;
      unsigned yPresent : 1;
   } m;
   H235ECpoint_x x;
   H235ECpoint_y y;
} H235ECpoint;

EXTERN int asn1PE_H235ECpoint (OOCTXT* pctxt, H235ECpoint* pvalue);

EXTERN int asn1PD_H235ECpoint (OOCTXT* pctxt, H235ECpoint* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdhp_modulus                                  */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdhp_modulus {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECKASDH_eckasdhp_modulus;

EXTERN int asn1PE_H235ECKASDH_eckasdhp_modulus (OOCTXT* pctxt, H235ECKASDH_eckasdhp_modulus* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdhp_modulus (OOCTXT* pctxt, H235ECKASDH_eckasdhp_modulus* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdhp_weierstrassA                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdhp_weierstrassA {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECKASDH_eckasdhp_weierstrassA;

EXTERN int asn1PE_H235ECKASDH_eckasdhp_weierstrassA (OOCTXT* pctxt, H235ECKASDH_eckasdhp_weierstrassA* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdhp_weierstrassA (OOCTXT* pctxt, H235ECKASDH_eckasdhp_weierstrassA* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdhp_weierstrassB                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdhp_weierstrassB {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECKASDH_eckasdhp_weierstrassB;

EXTERN int asn1PE_H235ECKASDH_eckasdhp_weierstrassB (OOCTXT* pctxt, H235ECKASDH_eckasdhp_weierstrassB* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdhp_weierstrassB (OOCTXT* pctxt, H235ECKASDH_eckasdhp_weierstrassB* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdhp                                          */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdhp {
   H235ECpoint public_key;
   H235ECKASDH_eckasdhp_modulus modulus;
   H235ECpoint base;
   H235ECKASDH_eckasdhp_weierstrassA weierstrassA;
   H235ECKASDH_eckasdhp_weierstrassB weierstrassB;
} H235ECKASDH_eckasdhp;

EXTERN int asn1PE_H235ECKASDH_eckasdhp (OOCTXT* pctxt, H235ECKASDH_eckasdhp* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdhp (OOCTXT* pctxt, H235ECKASDH_eckasdhp* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdh2_fieldSize                                */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdh2_fieldSize {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECKASDH_eckasdh2_fieldSize;

EXTERN int asn1PE_H235ECKASDH_eckasdh2_fieldSize (OOCTXT* pctxt, H235ECKASDH_eckasdh2_fieldSize* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdh2_fieldSize (OOCTXT* pctxt, H235ECKASDH_eckasdh2_fieldSize* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdh2_weierstrassA                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdh2_weierstrassA {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECKASDH_eckasdh2_weierstrassA;

EXTERN int asn1PE_H235ECKASDH_eckasdh2_weierstrassA (OOCTXT* pctxt, H235ECKASDH_eckasdh2_weierstrassA* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdh2_weierstrassA (OOCTXT* pctxt, H235ECKASDH_eckasdh2_weierstrassA* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdh2_weierstrassB                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdh2_weierstrassB {
   ASN1UINT  numbits;
   ASN1OCTET data[64];
} H235ECKASDH_eckasdh2_weierstrassB;

EXTERN int asn1PE_H235ECKASDH_eckasdh2_weierstrassB (OOCTXT* pctxt, H235ECKASDH_eckasdh2_weierstrassB* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdh2_weierstrassB (OOCTXT* pctxt, H235ECKASDH_eckasdh2_weierstrassB* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH_eckasdh2                                          */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ECKASDH_eckasdh2 {
   H235ECpoint public_key;
   H235ECKASDH_eckasdh2_fieldSize fieldSize;
   H235ECpoint base;
   H235ECKASDH_eckasdh2_weierstrassA weierstrassA;
   H235ECKASDH_eckasdh2_weierstrassB weierstrassB;
} H235ECKASDH_eckasdh2;

EXTERN int asn1PE_H235ECKASDH_eckasdh2 (OOCTXT* pctxt, H235ECKASDH_eckasdh2* pvalue);

EXTERN int asn1PD_H235ECKASDH_eckasdh2 (OOCTXT* pctxt, H235ECKASDH_eckasdh2* pvalue);

/**************************************************************/
/*                                                            */
/*  ECKASDH                                                   */
/*                                                            */
/**************************************************************/

/* Choice tag constants */

#define T_H235ECKASDH_eckasdhp          1
#define T_H235ECKASDH_eckasdh2          2
#define T_H235ECKASDH_extElem1          3

typedef struct EXTERN H235ECKASDH {
   int t;
   union {
      /* t = 1 */
      H235ECKASDH_eckasdhp *eckasdhp;
      /* t = 2 */
      H235ECKASDH_eckasdh2 *eckasdh2;
      /* t = 3 */
   } u;
} H235ECKASDH;

EXTERN int asn1PE_H235ECKASDH (OOCTXT* pctxt, H235ECKASDH* pvalue);

EXTERN int asn1PD_H235ECKASDH (OOCTXT* pctxt, H235ECKASDH* pvalue);

/**************************************************************/
/*                                                            */
/*  ClearToken                                                */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ClearToken {
   struct {
      unsigned timeStampPresent : 1;
      unsigned passwordPresent : 1;
      unsigned dhkeyPresent : 1;
      unsigned challengePresent : 1;
      unsigned randomPresent : 1;
      unsigned certificatePresent : 1;
      unsigned generalIDPresent : 1;
      unsigned nonStandardPresent : 1;
      unsigned eckasdhkeyPresent : 1;
      unsigned sendersIDPresent : 1;
   } m;
   ASN1OBJID tokenOID;
   H235TimeStamp timeStamp;
   H235Password password;
   H235DHset dhkey;
   H235ChallengeString challenge;
   H235RandomVal random;
   H235TypedCertificate certificate;
   H235Identifier generalID;
   H235NonStandardParameter nonStandard;
   H235ECKASDH eckasdhkey;
   H235Identifier sendersID;
} H235ClearToken;

EXTERN int asn1PE_H235ClearToken (OOCTXT* pctxt, H235ClearToken* pvalue);

EXTERN int asn1PD_H235ClearToken (OOCTXT* pctxt, H235ClearToken* pvalue);

/**************************************************************/
/*                                                            */
/*  IV8                                                       */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235IV8 {
   ASN1UINT numocts;
   ASN1OCTET data[8];
} H235IV8;

EXTERN int asn1PE_H235IV8 (OOCTXT* pctxt, H235IV8* pvalue);

EXTERN int asn1PD_H235IV8 (OOCTXT* pctxt, H235IV8* pvalue);

/**************************************************************/
/*                                                            */
/*  IV16                                                      */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235IV16 {
   ASN1UINT numocts;
   ASN1OCTET data[16];
} H235IV16;

EXTERN int asn1PE_H235IV16 (OOCTXT* pctxt, H235IV16* pvalue);

EXTERN int asn1PD_H235IV16 (OOCTXT* pctxt, H235IV16* pvalue);

/**************************************************************/
/*                                                            */
/*  Params                                                    */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235Params {
   struct {
      unsigned ranIntPresent : 1;
      unsigned iv8Present : 1;
      unsigned iv16Present : 1;
   } m;
   ASN1INT ranInt;
   H235IV8 iv8;
   H235IV16 iv16;
} H235Params;

EXTERN int asn1PE_H235Params (OOCTXT* pctxt, H235Params* pvalue);

EXTERN int asn1PD_H235Params (OOCTXT* pctxt, H235Params* pvalue);

/**************************************************************/
/*                                                            */
/*  ENCRYPTED                                                 */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235ENCRYPTED {
   ASN1OBJID algorithmOID;
   H235Params paramS;
   ASN1DynOctStr encryptedData;
} H235ENCRYPTED;

EXTERN int asn1PE_H235ENCRYPTED (OOCTXT* pctxt, H235ENCRYPTED* pvalue);

EXTERN int asn1PD_H235ENCRYPTED (OOCTXT* pctxt, H235ENCRYPTED* pvalue);

/**************************************************************/
/*                                                            */
/*  CryptoToken_cryptoEncryptedToken                          */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235CryptoToken_cryptoEncryptedToken {
   ASN1OBJID tokenOID;
   H235ENCRYPTED token;
} H235CryptoToken_cryptoEncryptedToken;

EXTERN int asn1PE_H235CryptoToken_cryptoEncryptedToken (OOCTXT* pctxt, H235CryptoToken_cryptoEncryptedToken* pvalue);

EXTERN int asn1PD_H235CryptoToken_cryptoEncryptedToken (OOCTXT* pctxt, H235CryptoToken_cryptoEncryptedToken* pvalue);

/**************************************************************/
/*                                                            */
/*  EncodedGeneralToken                                       */
/*                                                            */
/**************************************************************/

typedef ASN1OpenType H235EncodedGeneralToken;

EXTERN int asn1PE_H235EncodedGeneralToken (OOCTXT* pctxt, H235EncodedGeneralToken value);

EXTERN int asn1PD_H235EncodedGeneralToken (OOCTXT* pctxt, H235EncodedGeneralToken* pvalue);

/**************************************************************/
/*                                                            */
/*  CryptoToken_cryptoSignedToken_token                       */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235CryptoToken_cryptoSignedToken_token {
   H235EncodedGeneralToken toBeSigned;
   ASN1OBJID algorithmOID;
   H235Params paramS;
   ASN1DynBitStr signature;
} H235CryptoToken_cryptoSignedToken_token;

EXTERN int asn1PE_H235CryptoToken_cryptoSignedToken_token (OOCTXT* pctxt, H235CryptoToken_cryptoSignedToken_token* pvalue);

EXTERN int asn1PD_H235CryptoToken_cryptoSignedToken_token (OOCTXT* pctxt, H235CryptoToken_cryptoSignedToken_token* pvalue);

/**************************************************************/
/*                                                            */
/*  CryptoToken_cryptoSignedToken                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235CryptoToken_cryptoSignedToken {
   ASN1OBJID tokenOID;
   H235CryptoToken_cryptoSignedToken_token token;
} H235CryptoToken_cryptoSignedToken;

EXTERN int asn1PE_H235CryptoToken_cryptoSignedToken (OOCTXT* pctxt, H235CryptoToken_cryptoSignedToken* pvalue);

EXTERN int asn1PD_H235CryptoToken_cryptoSignedToken (OOCTXT* pctxt, H235CryptoToken_cryptoSignedToken* pvalue);

/**************************************************************/
/*                                                            */
/*  HASHED                                                    */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235HASHED {
   ASN1OBJID algorithmOID;
   H235Params paramS;
   ASN1DynBitStr hash;
} H235HASHED;

EXTERN int asn1PE_H235HASHED (OOCTXT* pctxt, H235HASHED* pvalue);

EXTERN int asn1PD_H235HASHED (OOCTXT* pctxt, H235HASHED* pvalue);

/**************************************************************/
/*                                                            */
/*  CryptoToken_cryptoHashedToken                             */
/*                                                            */
/**************************************************************/

typedef struct EXTERN H235CryptoToken_cryptoHashedToken {
   ASN1OBJID tokenOID;
   H235ClearToken hashedVals;
   H235HASHED token;
} H235CryptoToken_cryptoHashedToken;

EXTERN int asn1PE_H235CryptoToken_cryptoHashedToken (OOCTXT* pctxt, H235CryptoToken_cryptoHashedToken* pvalue);

EXTERN int asn1PD_H235CryptoToken_cryptoHashedToken (OOCTXT* pctxt, H235CryptoToken_cryptoHashedToken* pvalue);

/**************************************************************/
/*                                                            */
/*  CryptoToken                                               */
/*                                                            */
/**************************************************************/

/* Choice tag constants */

#define T_H235CryptoToken_cryptoEncryptedToken 1
#define T_H235CryptoToken_cryptoSignedToken 2
#define T_H235CryptoToken_cryptoHashedToken 3
#define T_H235CryptoToken_cryptoPwdEncr 4
#define T_H235CryptoToken_extElem1      5

typedef struct EXTERN H235CryptoToken {
   int t;
   union {
      /* t = 1 */
      H235CryptoToken_cryptoEncryptedToken *cryptoEncryptedToken;
      /* t = 2 */
      H235CryptoToken_cryptoSignedToken *cryptoSignedToken;
      /* t = 3 */
      H235CryptoToken_cryptoHashedToken *cryptoHashedToken;
      /* t = 4 */
      H235ENCRYPTED *cryptoPwdEncr;
      /* t = 5 */
   } u;
} H235CryptoToken;

EXTERN int asn1PE_H235CryptoToken (OOCTXT* pctxt, H235CryptoToken* pvalue);

EXTERN int asn1PD_H235CryptoToken (OOCTXT* pctxt, H235CryptoToken* pvalue);

#ifdef __cplusplus
}
#endif

#endif

--- NEW FILE: H235-SECURITY-MESSAGESDec.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "H235-SECURITY-MESSAGES.h"
#include "eventHandler.h"

/**************************************************************/
/*                                                            */
/*  ChallengeString                                           */
/*                                                            */
/**************************************************************/

EXTERN int asn1PD_H235ChallengeString (OOCTXT* pctxt, H235ChallengeString* pvalue)
{
   static Asn1SizeCnst lsize1 = { 0, 8, 128, 0 };
   int stat = ASN_OK;

[...1728 lines suppressed...]
         default:
            return ASN_E_INVOPT;
      }
   }
   else {
      stat = decodeSmallNonNegWholeNumber (pctxt, &ui);
      if (stat != ASN_OK) return stat;
      else pvalue->t = ui + 5;

      stat = decodeByteAlign (pctxt);
      if (stat != ASN_OK) return stat;

      stat = decodeOpenType (pctxt, &openType.data, &openType.numocts);
      if (stat != ASN_OK) return stat;

   }

   return (stat);
}


--- NEW FILE: H235-SECURITY-MESSAGESEnc.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "H235-SECURITY-MESSAGES.h"

/**************************************************************/
/*                                                            */
/*  ChallengeString                                           */
/*                                                            */
/**************************************************************/

EXTERN int asn1PE_H235ChallengeString (OOCTXT* pctxt, H235ChallengeString* pvalue)
{
   static Asn1SizeCnst lsize1 = { 0, 8, 128, 0 };
   int stat = ASN_OK;

   addSizeConstraint (pctxt, &lsize1);
[...1215 lines suppressed...]
            if (stat != ASN_OK) return stat;
            break;

         default:
            return ASN_E_INVOPT;
      }
   }
   else {
      /* Encode extension choice index value */

      stat = encodeSmallNonNegWholeNumber (pctxt, pvalue->t - 5);
      if (stat != ASN_OK) return stat;

      /* Encode extension element data value */

   }

   return (stat);
}


--- NEW FILE: H323-MESSAGES.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "H323-MESSAGES.h"

/**************************************************************/
/*                                                            */
/*  NumberDigits                                              */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_H323_MESSAGES_NumberDigits_CharSet =
"#*,0123456789";

/**************************************************************/
/*                                                            */
/*  TBCD_STRING                                               */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_H323_MESSAGES_TBCD_STRING_CharSet =
"#*0123456789abc";

/**************************************************************/
/*                                                            */
/*  ANSI_41_UIM_system_id                                     */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_system_id_sid_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_system_id_mid_CharSet =
"#*0123456789abc";

/**************************************************************/
/*                                                            */
/*  ANSI_41_UIM                                               */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_imsi_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_min_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_mdn_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_msisdn_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_esn_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_mscid_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_sesn_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_ANSI_41_UIM_soc_CharSet =
"#*0123456789abc";

/**************************************************************/
/*                                                            */
/*  GSM_UIM                                                   */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_H323_MESSAGES_GSM_UIM_imsi_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_GSM_UIM_msisdn_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_GSM_UIM_imei_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_GSM_UIM_hplmn_CharSet =
"#*0123456789abc";

EXTERN const char* gs_H323_MESSAGES_GSM_UIM_vplmn_CharSet =
"#*0123456789abc";

/**************************************************************/
/*                                                            */
/*  AliasAddress                                              */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_H323_MESSAGES_AliasAddress_dialedDigits_CharSet =
"#*,0123456789";


--- NEW FILE: H323-MESSAGES.h ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#ifndef H323_MESSAGES_H
#define H323_MESSAGES_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>

#include "ooasn1.h"
#include "H235-SECURITY-MESSAGES.h"
#include "MULTIMEDIA-SYSTEM-CONTROL.h"

/**************************************************************/
[...6456 lines suppressed...]
      H225InfoRequestNak *infoRequestNak;
      /* t = 31 */
      H225ServiceControlIndication *serviceControlIndication;
      /* t = 32 */
      H225ServiceControlResponse *serviceControlResponse;
      /* t = 33 */
      H225_SeqOfH225AdmissionConfirm *admissionConfirmSequence;
      /* t = 34 */
   } u;
} H225RasMessage;

EXTERN int asn1PE_H225RasMessage (OOCTXT* pctxt, H225RasMessage* pvalue);

EXTERN int asn1PD_H225RasMessage (OOCTXT* pctxt, H225RasMessage* pvalue);

#ifdef __cplusplus
}
#endif

#endif

--- NEW FILE: H323-MESSAGESDec.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "H323-MESSAGES.h"
#include "eventHandler.h"

/**************************************************************/
/*                                                            */
/*  ScreeningIndicator                                        */
/*                                                            */
/**************************************************************/

EXTERN int asn1PD_H225ScreeningIndicator (OOCTXT* pctxt, H225ScreeningIndicator* pvalue)
{
   int stat = ASN_OK;
   ASN1UINT ui;
   ASN1BOOL extbit;
[...27148 lines suppressed...]
            invokeStartElement (pctxt, "admissionConfirmSequence", -1);

            pvalue->u.admissionConfirmSequence = ALLOC_ASN1ELEM (pctxt, H225_SeqOfH225AdmissionConfirm);

            stat = asn1PD_H225_SeqOfH225AdmissionConfirm (pctxt, pvalue->u.admissionConfirmSequence);
            if (stat != ASN_OK) return stat;

            invokeEndElement (pctxt, "admissionConfirmSequence", -1);

            break;

         default:;
      }

      copyContext (pctxt, &lctxt);
   }

   return (stat);
}


--- NEW FILE: H323-MESSAGESEnc.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "H323-MESSAGES.h"

/**************************************************************/
/*                                                            */
/*  ScreeningIndicator                                        */
/*                                                            */
/**************************************************************/

EXTERN int asn1PE_H225ScreeningIndicator (OOCTXT* pctxt, H225ScreeningIndicator value)
{
   int stat = ASN_OK;
   ASN1UINT ui;
   ASN1BOOL extbit;

[...22542 lines suppressed...]
            if (stat != ASN_OK) return freeContext (&lctxt), stat;
            openType.data = encodeGetMsgPtr (&lctxt, (int*)&openType.numocts);
            break;

         default:
            ;
      }

      stat = encodeByteAlign (pctxt);
      if (stat != ASN_OK) return freeContext (&lctxt), stat;

      stat = encodeOpenType (pctxt, openType.numocts, openType.data);
      if (stat != ASN_OK) return freeContext (&lctxt), stat;

      freeContext (&lctxt);
   }

   return (stat);
}


--- NEW FILE: MULTIMEDIA-SYSTEM-CONTROL.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "MULTIMEDIA-SYSTEM-CONTROL.h"

/**************************************************************/
/*                                                            */
/*  NetworkAccessParameters_networkAddress                    */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_MULTIMEDIA_SYSTEM_CONTROL_NetworkAccessParameters_networkAddress_e164Address_CharSet =
"#*,0123456789";

/**************************************************************/
/*                                                            */
/*  UserInputIndication_signal                                */
/*                                                            */
/**************************************************************/

EXTERN const char* gs_MULTIMEDIA_SYSTEM_CONTROL_UserInputIndication_signal_signalType_CharSet =
"!#*0123456789ABCD";


--- NEW FILE: MULTIMEDIA-SYSTEM-CONTROL.h ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#ifndef MULTIMEDIA_SYSTEM_CONTROL_H
#define MULTIMEDIA_SYSTEM_CONTROL_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>

#include "ooasn1.h"

/**************************************************************/
/*                                                            */
/*  NonStandardIdentifier_h221NonStandard                     */
[...10883 lines suppressed...]
      H245RequestMessage *request;
      /* t = 2 */
      H245ResponseMessage *response;
      /* t = 3 */
      H245CommandMessage *command;
      /* t = 4 */
      H245IndicationMessage *indication;
      /* t = 5 */
   } u;
} H245MultimediaSystemControlMessage;

EXTERN int asn1PE_H245MultimediaSystemControlMessage (OOCTXT* pctxt, H245MultimediaSystemControlMessage* pvalue);

EXTERN int asn1PD_H245MultimediaSystemControlMessage (OOCTXT* pctxt, H245MultimediaSystemControlMessage* pvalue);

#ifdef __cplusplus
}
#endif

#endif

--- NEW FILE: MULTIMEDIA-SYSTEM-CONTROLDec.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "MULTIMEDIA-SYSTEM-CONTROL.h"
#include "eventHandler.h"

/**************************************************************/
/*                                                            */
/*  NonStandardIdentifier_h221NonStandard                     */
/*                                                            */
/**************************************************************/

EXTERN int asn1PD_H245NonStandardIdentifier_h221NonStandard (OOCTXT* pctxt, H245NonStandardIdentifier_h221NonStandard* pvalue)
{
   int stat = ASN_OK;

   /* decode t35CountryCode */
[...42116 lines suppressed...]
         default:
            return ASN_E_INVOPT;
      }
   }
   else {
      stat = decodeSmallNonNegWholeNumber (pctxt, &ui);
      if (stat != ASN_OK) return stat;
      else pvalue->t = ui + 5;

      stat = decodeByteAlign (pctxt);
      if (stat != ASN_OK) return stat;

      stat = decodeOpenType (pctxt, &openType.data, &openType.numocts);
      if (stat != ASN_OK) return stat;

   }

   return (stat);
}


--- NEW FILE: MULTIMEDIA-SYSTEM-CONTROLEnc.c ---
/**
 * This file was generated by the Objective Systems ASN1C Compiler
 * (http://www.obj-sys.com).  Version: 5.72, Date: 22-Mar-2005.
 */
#include "ooasn1.h"
#include "MULTIMEDIA-SYSTEM-CONTROL.h"

/**************************************************************/
/*                                                            */
/*  NonStandardIdentifier_h221NonStandard                     */
/*                                                            */
/**************************************************************/

EXTERN int asn1PE_H245NonStandardIdentifier_h221NonStandard (OOCTXT* pctxt, H245NonStandardIdentifier_h221NonStandard* pvalue)
{
   int stat = ASN_OK;

   /* encode t35CountryCode */

[...26545 lines suppressed...]
            if (stat != ASN_OK) return stat;
            break;

         default:
            return ASN_E_INVOPT;
      }
   }
   else {
      /* Encode extension choice index value */

      stat = encodeSmallNonNegWholeNumber (pctxt, pvalue->t - 5);
      if (stat != ASN_OK) return stat;

      /* Encode extension element data value */

   }

   return (stat);
}





More information about the svn-commits mailing list