Skip Navigation

Link for FIPS in Objective-C or C++

Linking for FIPS is required. For background information, see FIPS 140-2 compliance.
If your application is written in Objective-C or C++, make the following project changes.
  1. In the project's
    default.xcconfig
    file, add the following lines. (If you are not using an
    xcconfig
    file, add one and configure your build options to use it.) This ensures that the FIPS canister linking script
    gd_fipsld
    is called as part of the build process.
  2. In your project build settings
    Configurations
    , make sure the
    Debug
    or other build configs point to the
    default.xcconfig
    you created in the step above.
    FIPS_PACKAGE=$(CURRENT_ARCH).sdk LDPLUSPLUS=/BlackBerry/Good.platform/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld LD=/BlackBerry/Good.platform/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
  3. Ensure that the deployment target is set to the currently required version detailed in Software requirements.
  4. Make sure that the
    all_load linker
    option is not specified. Check the
    Other Linker Flags
    field in the target build settings and remove this flag. Alternatively, you can use the
    ObjC
    linker flag.