Changeset 179


Ignore:
Timestamp:
06/15/09 19:51:23 (3 years ago)
Author:
aj
Message:

add new function to export slot id.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r168 r179  
    11NEWS for Libp11 -- History of user visible changes 
     2 
     3New in 0.2.5; 2009-06-15; Andreas Jellinghaus 
     4* Add function to export the slot id (Douglas E. Engert). 
     5* Increase library version because of the new function. 
    26 
    37New in 0.2.4; 2008-07-31; Andreas Jellinghaus 
  • trunk/configure.ac

    r178 r179  
    55define([PACKAGE_VERSION_MAJOR], [0]) 
    66define([PACKAGE_VERSION_MINOR], [2]) 
    7 define([PACKAGE_VERSION_FIX], [4]) 
    8 define([PACKAGE_SUFFIX], [-svn]) 
     7define([PACKAGE_VERSION_FIX], [5]) 
     8define([PACKAGE_SUFFIX], []) 
    99 
    1010AC_INIT([libp11],[PACKAGE_VERSION_MAJOR.PACKAGE_VERSION_MINOR.PACKAGE_VERSION_FIX[]PACKAGE_SUFFIX]) 
     
    2222#   (Oldest interface removed:          OLDEST++) 
    2323#   (Interfaces added:                  CURRENT++, REVISION=0) 
    24 LIBP11_LT_CURRENT="2" 
     24LIBP11_LT_CURRENT="3" 
    2525LIBP11_LT_OLDEST="1" 
    2626LIBP11_LT_REVISION="0" 
  • trunk/src/libp11.h

    r173 r179  
    159159extern int PKCS11_enumerate_slots(PKCS11_CTX * ctx, 
    160160                        PKCS11_SLOT **slotsp, unsigned int *nslotsp); 
     161 
     162/** 
     163 * Get the slot_id from a slot as it is stored in private 
     164 * 
     165 * @param slotp pointer on a slot 
     166 * @retval the slotid  
     167 */ 
     168extern unsigned long PKCS11_get_slotid_from_slot(PKCS11_SLOT *slotp); 
    161169 
    162170/** 
  • trunk/src/p11_slot.c

    r142 r179  
    2727 
    2828/* 
     29 * Get slotid from private 
     30 */ 
     31unsigned long 
     32PKCS11_get_slotid_from_slot(PKCS11_SLOT *slot) 
     33{ 
     34        PKCS11_SLOT_private *priv = PRIVSLOT(slot); 
     35 
     36                return priv->id; 
     37} 
     38 
     39/* 
    2940 * Enumerate slots 
    3041 */ 
Note: See TracChangeset for help on using the changeset viewer.