{"action":"closed","issue":{"url":"https://api.github.com/repos/Fedict/eid-mw/issues/25","repository_url":"https://api.github.com/repos/Fedict/eid-mw","labels_url":"https://api.github.com/repos/Fedict/eid-mw/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Fedict/eid-mw/issues/25/comments","events_url":"https://api.github.com/repos/Fedict/eid-mw/issues/25/events","html_url":"https://github.com/Fedict/eid-mw/issues/25","id":208382128,"number":25,"title":"How to make the GUI disappear?","user":{"login":"shamun","id":107349,"avatar_url":"https://avatars2.githubusercontent.com/u/107349?v=4","gravatar_id":"","url":"https://api.github.com/users/shamun","html_url":"https://github.com/shamun","followers_url":"https://api.github.com/users/shamun/followers","following_url":"https://api.github.com/users/shamun/following{/other_user}","gists_url":"https://api.github.com/users/shamun/gists{/gist_id}","starred_url":"https://api.github.com/users/shamun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamun/subscriptions","organizations_url":"https://api.github.com/users/shamun/orgs","repos_url":"https://api.github.com/users/shamun/repos","events_url":"https://api.github.com/users/shamun/events{/privacy}","received_events_url":"https://api.github.com/users/shamun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-17T09:21:41Z","updated_at":"2017-08-22T09:18:23Z","closed_at":"2017-08-22T09:18:23Z","body":"I have a Robot, which have USB id card reader connected on it. With sensor it talks and walks, finally when it detect human it says please insert your ID card reader, to read your record, when you are done please remove your eID card from the reader.\r\n\r\nNow in the Robot there is no MONITOR, no KEYBOARD, no MOUSE. how do i tell eid-mw framework to please disable the DIALOG window? (where its asking yes or no, yes always? because its robot, i need to read the data only without any prompt)\r\n\r\n![](https://cloud.githubusercontent.com/assets/107349/22703734/6ef3945a-ed65-11e6-8795-ac64aed6ad1c.png)\r\n\r\n\r\nthis is the code i am using: https://github.com/Fedict/eid-mw/blob/master/doc/sdk/examples/C/src/data.c#L167\r\n\r\n```\r\n/* Read exactly one value from the card. */\r\nCK_RV Beidsdk_GetObjectValue(CK_FUNCTION_LIST_PTR pFunctions, CK_SESSION_HANDLE session_handle,CK_CHAR_PTR pName,CK_VOID_PTR *ppValue, CK_ULONG_PTR pvalueLen)\r\n{\r\n\tCK_RV retVal = CKR_OK;\r\n\tCK_ULONG data = CKO_DATA;\r\n\tCK_ATTRIBUTE searchtemplate[2] = {{CKA_CLASS,&data,sizeof(CK_ULONG)},{CKA_LABEL,(CK_VOID_PTR)pName,(CK_ULONG)strlen(pName)}};\r\n\t*pvalueLen = 0;\r\n\r\n\t//initialize the search for the objects with label <filename>\r\n\tretVal = (pFunctions->C_FindObjectsInit)(session_handle, searchtemplate, 2); \r\n\tif (retVal != CKR_OK) { return retVal; }\r\n\r\n\tCK_OBJECT_HANDLE hObject = 0;\r\n\tCK_ULONG ulObjectCount = 0;\r\n\t//find the first object with label <filename>\r\n\tretVal = (pFunctions->C_FindObjects)(session_handle, &hObject,1,&ulObjectCount); \r\n\tif (ulObjectCount != 1) { retVal = CKR_GENERAL_ERROR; }\r\n\tif (retVal != CKR_OK) { goto finalize; }\r\n\r\n\t/* NULL_PTR as second argument, so the length of value is filled in to\r\n\t * retValueLen. See the definition of C_GetAttributeValue in the PKCS#11\r\n\t * standard for more details.\r\n\t */\r\n\tCK_ATTRIBUTE attr_templ[1] = {CKA_VALUE,NULL_PTR,0};\r\n\r\n\t//retrieve the length of the data from the object\r\n\tretVal = (pFunctions->C_GetAttributeValue)(session_handle,hObject,attr_templ,1);\r\n\tif(retVal != CKR_OK || ((CK_LONG)(attr_templ[0].ulValueLen) == -1)) { goto finalize; }\r\n\r\n\t*ppValue = malloc (attr_templ[0].ulValueLen);\r\n\tif (*ppValue == NULL) { retVal = CKR_GENERAL_ERROR; goto finalize; }\r\n\r\n\tattr_templ[0].pValue = *ppValue;\r\n\t/* now run C_GetAttributeValue a second time to actually retrieve the\r\n\t * data from the object\r\n\t */\r\n\tretVal = (pFunctions->C_GetAttributeValue)(session_handle,hObject,attr_templ,1);\r\n\t*pvalueLen = attr_templ[0].ulValueLen;\r\n\r\nfinalize:\r\n\t//finalize the search\r\n\tretVal = (pFunctions->C_FindObjectsFinal)(session_handle); \r\n\treturn retVal;\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"yoe"}}