Constify.
Whitespace.
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ typedef struct {
|
|||||||
CK_BBOOL token; // TODO: not used yet
|
CK_BBOOL token; // TODO: not used yet
|
||||||
CK_BBOOL private;
|
CK_BBOOL private;
|
||||||
CK_BBOOL modifiable;
|
CK_BBOOL modifiable;
|
||||||
char *label;
|
const char *label;
|
||||||
CK_BBOOL copyable; // TODO: Optional, not used so far (default TRUE)
|
CK_BBOOL copyable; // TODO: Optional, not used so far (default TRUE)
|
||||||
CK_BBOOL destroyable; // TODO: Optional, not used so far (default TRUE)
|
CK_BBOOL destroyable; // TODO: Optional, not used so far (default TRUE)
|
||||||
get_attr_f get_attribute;
|
get_attr_f get_attribute;
|
||||||
|
|||||||
+2
-2
@@ -463,7 +463,7 @@ CK_RV get_proa(CK_OBJECT_HANDLE obj, CK_ATTRIBUTE_PTR template) {
|
|||||||
case CKA_LABEL:
|
case CKA_LABEL:
|
||||||
DBG("LABEL");
|
DBG("LABEL");
|
||||||
len = strlen(piv_objects[obj].label) + 1;
|
len = strlen(piv_objects[obj].label) + 1;
|
||||||
data =(CK_BYTE_PTR) piv_objects[obj].label;
|
data = (CK_BYTE_PTR) piv_objects[obj].label;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CKA_KEY_TYPE:
|
case CKA_KEY_TYPE:
|
||||||
@@ -705,7 +705,7 @@ CK_RV get_puoa(CK_OBJECT_HANDLE obj, CK_ATTRIBUTE_PTR template) {
|
|||||||
case CKA_LABEL:
|
case CKA_LABEL:
|
||||||
DBG("LABEL");
|
DBG("LABEL");
|
||||||
len = strlen(piv_objects[obj].label) + 1;
|
len = strlen(piv_objects[obj].label) + 1;
|
||||||
data = (CK_BYTE_PTR)piv_objects[obj].label;
|
data = (CK_BYTE_PTR) piv_objects[obj].label;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CKA_KEY_TYPE:
|
case CKA_KEY_TYPE:
|
||||||
|
|||||||
Reference in New Issue
Block a user