hu_GlobalCtxCreateFromOriginal()

Create a new SB global context from an existing one.

Synopsis:

#include "huctx.h"
 
int hu_GlobalCtxCreateFromOriginal(sb_GlobalCtx sbCtx, sb_GlobalCtx *newSbCtx)

Since:

BlackBerry 10.0.0

Arguments:

sbCtx

The original SB global context.

newSbCtx

The new SB global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

The new context has the same callbacks as the original, but has no crypto support.

Returns:

SB_ERR_NULL_GLOBAL_CTX

The sbCtx argument is NULL.

SB_ERR_NULL_GLOBAL_CTX_PTR

The newSbCtx argument is NULL.