Re: [cicm] Key Identifers

"Novikov, Lev" <lnovikov@mitre.org> Fri, 03 June 2011 20:34 UTC

Return-Path: <lnovikov@mitre.org>
X-Original-To: cicm@ietfa.amsl.com
Delivered-To: cicm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31F3DE07D4 for <cicm@ietfa.amsl.com>; Fri, 3 Jun 2011 13:34:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nJ-ClSTAwnEK for <cicm@ietfa.amsl.com>; Fri, 3 Jun 2011 13:34:44 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id DE071E07AB for <cicm@ietf.org>; Fri, 3 Jun 2011 13:34:43 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id BBC8D21B0EDC for <cicm@ietf.org>; Fri, 3 Jun 2011 16:34:42 -0400 (EDT)
Received: from imchub2.MITRE.ORG (imchub2.mitre.org [129.83.29.74]) by smtpksrv1.mitre.org (Postfix) with ESMTP id B783821B0CA3 for <cicm@ietf.org>; Fri, 3 Jun 2011 16:34:42 -0400 (EDT)
Received: from IMCMBX3.MITRE.ORG ([129.83.29.206]) by imchub2.MITRE.ORG ([129.83.29.74]) with mapi; Fri, 3 Jun 2011 16:34:42 -0400
From: "Novikov, Lev" <lnovikov@mitre.org>
To: CICM Discussion List <cicm@ietf.org>
Date: Fri, 03 Jun 2011 16:33:40 -0400
Thread-Topic: Key Identifers
Thread-Index: AcwhezV3QC9uOkO8TZmDXjV91Jju3AAsPBNw
Message-ID: <F9AB58FA72BAE7449E7723791F6993ED05D3341BEA@IMCMBX3.MITRE.ORG>
References: <E3337014FCBC034BBD725917528D5D7BD08CBF@vcaexch06.hq.corp.viasat.com>
In-Reply-To: <E3337014FCBC034BBD725917528D5D7BD08CBF@vcaexch06.hq.corp.viasat.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [cicm] Key Identifers
X-BeenThere: cicm@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: CICM Discussion List <cicm@ietf.org>
List-Id: CICM Discussion List <cicm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cicm>, <mailto:cicm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/cicm>
List-Post: <mailto:cicm@ietf.org>
List-Help: <mailto:cicm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cicm>, <mailto:cicm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 03 Jun 2011 20:34:45 -0000

Girish,

On 2011-06-02 at 19:17, Girish Nanjundiah wrote:
> [...] how we are meant to access the CICM::CharString identifier attribute 
> of the CICM::Key class.

An attribute in IDL gets mapped to _get_{attribute}() and _set_{attribute}() 
methods for the object. For example, the CryptoModule::sym_key_manager 
attribute is a read-only attribute so it becomes:
    
    SymKeyManager* CryptoModule::_get_sym_key_manager(void) {
      return &(this->sym_key_manager);
     };
    
See:
http://code.google.com/p/ietf-cicm/source/browse/cpp/cicm.cpp#47

For your case, you'd want to define something similar.

Let me know if works for your situation.

Lev