Back to index

lightning-sunbird  0.9+nobinonly
encutil.c File Reference
#include "secasn1.h"
#include "crmf.h"
#include "crmfi.h"

Go to the source code of this file.


void crmf_encoder_out (void *arg, const char *buf, unsigned long len, int depth, SEC_ASN1EncodingPart data_kind)
SECStatus cmmf_user_encode (void *src, CRMFEncoderOutputCallback inCallback, void *inArg, const SEC_ASN1Template *inTemplate)

Function Documentation

SECStatus cmmf_user_encode ( void src,
CRMFEncoderOutputCallback  inCallback,
void inArg,
const SEC_ASN1Template inTemplate 

Definition at line 53 of file encutil.c.

    struct crmfEncoderOutput output;

    PORT_Assert(src != NULL);
    if (src == NULL) {
        return SECFailure;
    output.fn        = inCallback;
    output.outputArg = inArg;
    return SEC_ASN1Encode(src, inTemplate, crmf_encoder_out, &output);    
void crmf_encoder_out ( void arg,
const char *  buf,
unsigned long  len,
int  depth,
SEC_ASN1EncodingPart  data_kind 

Definition at line 43 of file encutil.c.

    struct crmfEncoderOutput *output;

    output = (struct crmfEncoderOutput*) arg;
    output->fn (output->outputArg, buf, len);