Searched refs:pem_marker (Results 1 – 2 of 2) sorted by relevance
24 def _markers(pem_marker): argument29 if not is_bytes(pem_marker):30 pem_marker = pem_marker.encode('ascii')32 return (b'-----BEGIN ' + pem_marker + b'-----',33 b'-----END ' + pem_marker + b'-----')36 def load_pem(contents, pem_marker): argument55 (pem_start, pem_end) = _markers(pem_marker)102 def save_pem(contents, pem_marker): argument114 (pem_start, pem_end) = _markers(pem_marker)
122 def __call__(cls, obj_path, obj_max_size, pem_marker=None): argument158 if pem_marker is not None:159 pem = der2pem(_raw, pem_marker)