Esempio n. 1
0
def text_crlf_bio(bio_in):
    bio_out = BIO.MemoryBuffer()
    m2.smime_crlf_copy(bio_in, bio_out)
    if m2.smime_crlf_copy(bio_in, bio_out):
        return bio_out
    else:
        raise Err.get_error()
Esempio n. 2
0
def text_crlf_bio(bio_in):
    bio_out = BIO.MemoryBuffer()
    m2.smime_crlf_copy(bio_in, bio_out)
    if m2.smime_crlf_copy(bio_in, bio_out):
        return bio_out
    else:
        raise Err.get_error()
Esempio n. 3
0
def text_crlf(text):
    bio_in = BIO.MemoryBuffer(text)
    bio_out = BIO.MemoryBuffer()
    if m2.smime_crlf_copy(bio_in._ptr(), bio_out._ptr()):
        return bio_out.read()
    else:
        raise SMIME_Error(Err.get_error())
Esempio n. 4
0
def text_crlf(text):
    bio_in = BIO.MemoryBuffer(text)
    bio_out = BIO.MemoryBuffer()
    if m2.smime_crlf_copy(bio_in, bio_out):
        return bio_out.read()
    else:
        raise Err.get_error()
Esempio n. 5
0
def text_crlf_bio(bio_in):
    bio_out = BIO.MemoryBuffer()
    if m2.smime_crlf_copy(bio_in._ptr(), bio_out._ptr()):
        return bio_out
    else:
        raise SMIME_Error(Err.get_error())