xml/schema/lib/types/bsd.xsd

35 lines
1.2 KiB
XML
Raw Normal View History

2019-12-08 01:42:33 -05:00
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
2019-12-09 07:16:33 -05:00
attributeFormDefault="unqualified">
2019-12-09 08:29:38 -05:00
<xs:include schemaLocation="./linux.xsd"/>
<xs:include schemaLocation="./std.xsd"/>
<xs:include schemaLocation="./unix.xsd"/>
2019-12-08 01:42:33 -05:00
<xs:simpleType name="t_bsd_passwd_hashtypes">
<xs:union memberTypes="t_linux_passwd_hashtypes">
2019-12-08 01:42:33 -05:00
<xs:simpleType>
<xs:restriction>
<!-- <xs:enumeration value="des"/> -->
<!-- bcrypt/blowfish are the same. -->
<xs:enumeration value="bcrypt"/>
<xs:enumeration value="blowfish"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="t_bsd_shadowhash">
<xs:union memberTypes="t_linux_shadowhash">
2019-12-08 01:42:33 -05:00
<xs:simpleType>
<xs:restriction>
<!-- Blowfish/bcrypt -->
<xs:pattern value="\s*($2[abxy]?)?($[0-9]+)$[a-zA-Z0-9./]{53}\s*"/>
2019-12-08 01:42:33 -05:00
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:schema>