The Gmail S/MIME source code can be accessed in either of the following ways:

CVS client and Help Documentation links: