fix for DF181101-00661 40/192340/1 accepted/tizen/unified/20181106.070524 submit/tizen/20181102.095221
authorSusnata Sovalin <s.sovalin@samsung.com>
Fri, 2 Nov 2018 09:01:25 +0000 (14:31 +0530)
committerSusnata Sovalin <s.sovalin@samsung.com>
Fri, 2 Nov 2018 09:01:25 +0000 (14:31 +0530)
Change-Id: Iae4459aa4f1322505da8578a25fce4eba6ecbb72
Signed-off-by: Susnata Sovalin <s.sovalin@samsung.com>
common/cryptoutil/inc/asmcrypto.h
common/cryptoutil/src/AsmCrypto.cpp
fido-asm.manifest
packaging/fido-asm.spec
silent_auth/CMakeLists.txt
silent_auth/silent_auth_entry.cpp

index d7534172e7dd7784fe8d504c5d2054ec6b096d8d..a4a0164c32fe9be6d0d910813892644bf1f65454 100755 (executable)
@@ -54,8 +54,8 @@ public:
                                                                                  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);
 
index f919196c03dff3b475a4e449667e1c0e15d22585..485ed2133ea4a879fc7bcb2abf572bce58a37e9e 100755 (executable)
@@ -1150,7 +1150,7 @@ AsmCrypto::fidoSignWithKey(const unsigned char *msg, int msg_len,
        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)
 {
@@ -1205,7 +1205,7 @@ AsmCrypto::fidoSign(const unsigned char *msg, int msg_len, const char *private_k
 
        *sig_len = sig_len_loc;
        return sig;
-}
+}*/
 
 int
 AsmCrypto::genRandomInt(void)
index ad0406a394fe5f01f87be372d9e3ca381ef73143..71320db82790fceaab3184d058a5bae7c0813cfa 100644 (file)
@@ -4,6 +4,5 @@
        </request>
        <assign>
        <filesystem path="/opt/usr/data/fido_tizen_auth.der" label="_" />
-       <filesystem path="/opt/usr/data/fido_tizen_auth.key" label="_" />
     </assign>
 </manifest>
index 19b2680afc98f2c88a5f8ed254212313e5291bb3..d5260f81b8a4303c01dc547b44f2b20437c7e212 100755 (executable)
@@ -242,11 +242,11 @@ FIDO Silent Authenticator
 
 %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/
@@ -254,7 +254,7 @@ 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
index 37e7a0672b1296c787299a0c541fd179f5e67ddf..d6326037c28201e58310b3157464c3d3ee34996a 100644 (file)
@@ -55,6 +55,6 @@ SET_TARGET_PROPERTIES(${SILENT_PACKAGE_NAME} PROPERTIES VERSION 1)
 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)
index 72172f47757afc4947994ea5d046a3218bff9bee..e5d935f1e3e21301aa35c74bb1aa2b26465112dc 100755 (executable)
@@ -877,7 +877,7 @@ processRegister(unsigned char *assert_req)
 
        _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);
 
@@ -888,7 +888,7 @@ processRegister(unsigned char *assert_req)
                SAFE_DELETE(priv_key_b64_enc);
                SAFE_DELETE(keyId_b64_enc);
                return NULL;
-       }
+       }*/
 
        _INFO("After SignWithPrivateKeyFile, Length of signature is = [%d]", sig_len);
 
@@ -902,7 +902,7 @@ processRegister(unsigned char *assert_req)
 
        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);