def set_friendlyname(self, name):
if name is None:<EOL><INDENT>self._friendlyname = None<EOL><DEDENT>elif not isinstance(name, bytes):<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>" % (name,)<EOL>)<EOL><DEDENT>self._friendlyname = name<EOL>
Set the friendly name in the PKCS #12 structure.

:param name: The new friendly name, or :py:const:`None` to unset.
:type name: :py:class:`bytes` or :py:const:`None`

:return: ``None``