const unsigned char *private_key, int priv_key_len,
int *sig_len);
- static unsigned char* fidoSign(const unsigned char *msg, int msg_len, const char *private_key_file,
- const char *pwd, int *sig_len);
+ /*static unsigned char* fidoSign(const unsigned char *msg, int msg_len, const char *private_key_file,
+ const char *pwd, int *sig_len);*/
static std::string getAsmToken(void);
return sig;
}
-unsigned char*
+/*unsigned char*
AsmCrypto::fidoSign(const unsigned char *msg, int msg_len, const char *private_key_file,
const char *pwd, int *sig_len)
{
*sig_len = sig_len_loc;
return sig;
-}
+}*/
int
AsmCrypto::genRandomInt(void)
</request>
<assign>
<filesystem path="/opt/usr/data/fido_tizen_auth.der" label="_" />
- <filesystem path="/opt/usr/data/fido_tizen_auth.key" label="_" />
</assign>
</manifest>
%post -n fido_silent
chown service_fw:service_fw /opt/usr/data/silent_auth/fido_tizen_auth.der
-chown service_fw:service_fw /opt/usr/data/silent_auth/fido_tizen_auth.key
+#chown service_fw:service_fw /opt/usr/data/silent_auth/fido_tizen_auth.key
chmod 660 /opt/usr/data/silent_auth/fido_tizen_auth.der
-chmod 660 /opt/usr/data/silent_auth/fido_tizen_auth.key
+#chmod 660 /opt/usr/data/silent_auth/fido_tizen_auth.key
chsmack -a '_' /opt/usr/data/silent_auth/fido_tizen_auth.der
-chsmack -a '_' /opt/usr/data/silent_auth/fido_tizen_auth.key
+#chsmack -a '_' /opt/usr/data/silent_auth/fido_tizen_auth.key
%postun -n fido_silent
rm -r /opt/usr/data/silent_auth/
%files -n fido_silent
%{_libdir}/fido/asm/auth/libfido_silent_*.so*
/opt/usr/data/silent_auth/fido_tizen_auth.der
-/opt/usr/data/silent_auth/fido_tizen_auth.key
+#/opt/usr/data/silent_auth/fido_tizen_auth.key
#################################################################################
# FIDO BT Roaming Agent
TARGET_LINK_LIBRARIES(${SILENT_PACKAGE_NAME} ${SILENT_AUTH_PKGS_LDFLAGS})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/fido_tizen_auth.der DESTINATION /opt/usr/data/silent_auth/)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/fido_tizen_auth.key DESTINATION /opt/usr/data/silent_auth/)
+#INSTALL(FILES ${CMAKE_SOURCE_DIR}/fido_tizen_auth.key DESTINATION /opt/usr/data/silent_auth/)
INSTALL(TARGETS ${SILENT_PACKAGE_NAME} DESTINATION ${LIBDIR}/fido/asm/auth)
_INFO("Before SignWithPrivateKeyFile");
int sig_len = 0;
- unsigned char *sign_raw = AsmCrypto::fidoSign(krdStr, krdStr_len,
+ /*unsigned char *sign_raw = AsmCrypto::fidoSign(krdStr, krdStr_len,
FIDO_TIZEN_AUTH_KEY_PATH,
"tizen", &sig_len);
SAFE_DELETE(priv_key_b64_enc);
SAFE_DELETE(keyId_b64_enc);
return NULL;
- }
+ }*/
_INFO("After SignWithPrivateKeyFile, Length of signature is = [%d]", sig_len);
getRegRespInfo->regAssertion->attFull->sig = ALLOC(Buffer);
getRegRespInfo->regAssertion->attFull->sig->data = NALLOC(sig_len, uint8_t);
- memcpy(getRegRespInfo->regAssertion->attFull->sig->data, sign_raw, sig_len);
+ //memcpy(getRegRespInfo->regAssertion->attFull->sig->data, sign_raw, sig_len);
getRegRespInfo->regAssertion->attFull->sig->len = sig_len;
getRegRespInfo->regAssertion->attFull->cert = ALLOC(Buffer);