Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
This page was last modified 14:02, 4 November 2008.

TSS000645 - Restricting ECom plug-in usage to known clients

From Forum Nokia Wiki



ID TSS000645 Creation date May 10, 2007
Platform S60 3rd Edition
S60 3rd Edition, FP1
Devices
Category Symbian C++ Subcategory Security


Keywords (APIs, classes, methods, functions):

Overview

Restricting ECom plug-in usage to known clients

Description

To restrict the use of a DLL or ECom plug-in only to known/trusted clients, it is possible to identify the caller with RProcess::SecureID() and/or RProcess::VendorID().

Solution

Instantiating an RProcess object creates a handle to the current process (client that loaded the DLL), with its SecureID and VendorID values set.
    RProcess loaderProcess;
    if( loaderProcess.VendorID() != KMyVendorId )
        {
        return KErrPermissionDenied;
        }
    RProcess loaderProcess;
    if( loaderProcess.SecureID() != KMySecureId )
        {
        return KErrPermissionDenied;
        }

Related Discussions

Thread Thread Starter Forum Replies Last Post
target type of lib files karanala General Symbian C++ 2 2007-02-16 06:32
Password Caching? thetao Symbian Signing, Certification and Security 3 2008-06-16 21:25
Flash 2 Sis Capatain Future Flash Lite on Nokia Devices 4 2008-08-22 11:07
playing mp3 on the emulator rubi13133 Symbian Media (Graphics & Sounds) 6 2008-07-02 11:01
How to register an ECom plugin? brianwsun Symbian Media (Graphics & Sounds) 5 2007-12-17 10:58

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia