xmlsecurityengine/xmlseccrypto/src/xmlsecc_app.cpp
branchRCL_3
changeset 8 e65204f75c47
parent 0 e35f40988205
equal deleted inserted replaced
4:d2801e68661f 8:e65204f75c47
    86 			const char* keyname,
    86 			const char* keyname,
    87 			const char* pwd,
    87 			const char* pwd,
    88 			void* pwdCallback,
    88 			void* pwdCallback,
    89 			void* pwdCallbackCtx) {			
    89 			void* pwdCallbackCtx) {			
    90     xmlSecKeyPtr key = NULL;
    90     xmlSecKeyPtr key = NULL;
    91     EVP_PKEY* pKey = NULL; 
    91     
    92     BIO* bio;
    92     BIO* bio;
    93     xmlSecKeyDataPtr data;  
    93     
    94     			
    94     			
    95     xmlSecAssert2(filename, NULL);
    95     xmlSecAssert2(filename, NULL);
    96     xmlSecAssert2(format != xmlSecKeyDataFormatUnknown, NULL);
    96     xmlSecAssert2(format != xmlSecKeyDataFormatUnknown, NULL);
    97      
    97      
    98     bio = BIO_new_file(filename, (const char*)"rb", keyname);
    98     bio = BIO_new_file(filename, (const char*)"rb", keyname);
   144 xmlSecSymbianCryptoAppKeyLoadMemoryWithName(const xmlSecByte* data, xmlSecSize dataSize, 
   144 xmlSecSymbianCryptoAppKeyLoadMemoryWithName(const xmlSecByte* data, xmlSecSize dataSize, 
   145 			xmlSecKeyDataFormat format, const char* keyname, const char* pwd, 
   145 			xmlSecKeyDataFormat format, const char* keyname, const char* pwd, 
   146 			void* pwdCallback, void* pwdCallbackCtx) {
   146 			void* pwdCallback, void* pwdCallbackCtx) {
   147     
   147     
   148     xmlSecKeyPtr key = NULL;
   148     xmlSecKeyPtr key = NULL;
   149     EVP_PKEY* pKey = NULL; 
   149     
   150     BIO* bio;
   150     BIO* bio;
   151     
   151     
   152     bio = BIO_new_buffer((const char*)data,dataSize,keyname);
   152     bio = BIO_new_buffer((const char*)data,dataSize,keyname);
   153     if(!bio) {
   153     if(!bio) {
   154 	return(NULL);    
   154 	return(NULL);