Function gnunet_sys::GNUNET_IDENTITY_create[][src]

pub unsafe extern "C" fn GNUNET_IDENTITY_create(
    id: *mut GNUNET_IDENTITY_Handle,
    name: *const c_char,
    privkey: *const GNUNET_IDENTITY_PrivateKey,
    ktype: GNUNET_IDENTITY_KeyType,
    cont: GNUNET_IDENTITY_CreateContinuation,
    cont_cls: *mut c_void
) -> *mut GNUNET_IDENTITY_Operation

Create a new ego with the given name.

@param id identity service to use @param name desired name @param privkey desired private key or NULL to create one @param ktype the type of key to create. Ignored if privkey != NULL. @param cont function to call with the result (will only be called once) @param cont_cls closure for @a cont @return handle to abort the operation