简体   繁体   中英

How I can use openssl in Qt or CQA for symbian?

I need to use some cryptography algorithms in my symbian Qt project. But I could not compile QCA for my symbian environment.

  1. How I can links my libcrypto.lib which is openssl static library for symbian to my QT application?I cannot find any place for configuring my QT application to accept this library.

  2. Is it possible to compile QCA for symbian? If yes, how?

Regards

You can link against libcrypto.lib this way in your .pro file:

symbian: {
  LIBS += -llibcrypto
}

You will have to make code changes to QCA in order to make it compile for Symbian. So, while it is possible, you'll need to spend some time to make it work, it just won't work out of the box (as you've discovered).

Since you haven't specified exactly what it is that you need in terms of cryptographic functions, there is the QCryptographicHash class which provides MD4, MD5, and SHA1 hash generation.

Otherwise, you're stuck with openssl, which you can use laalto's answer for linking with libcrypto.lib

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM